View Source Mix.Bonny (bonny v1.4.0)
Mix task helpers
Summary
Functions
Get the OTP app name
Appends append_content
to target
. If target
does not exist, a new
file with new_file_content
is created.
Capitalizes the string if it does not begin with a capital letter.
Get the OTP app name with dashes
Parse CLI input
Prepends append_content
to target
. If target
does not exist, a new
file with new_file_content
is created.
Render text to a file.
Functions
add_or_create_with(mode, target, content_to_add, new_file_content, check)
View Source@spec app_dir_name() :: binary()
@spec app_name() :: binary()
Get the OTP app name
append_or_create_with(target, content_to_append, new_file_content, check)
View SourceAppends append_content
to target
. If target
does not exist, a new
file with new_file_content
is created.
Capitalizes the string if it does not begin with a capital letter.
@spec hyphenated_app_name() :: binary()
Get the OTP app name with dashes
@spec no_umbrella!() :: any()
@spec parse_args([binary()], Keyword.t(), Keyword.t()) :: {Keyword.t(), [binary()], [{binary(), nil | binary()}]}
Parse CLI input
prepend_or_create_with(target, content_to_prepend, new_file_content, check)
View SourcePrepends append_content
to target
. If target
does not exist, a new
file with new_file_content
is created.
Render text to a file.
Special handling for the path "-" will render to STDOUT