View Source mix recode.rename (Recode v0.1.0)
A mix task to rename functions.
mix recode.rename Module.name[/arity] new_name
This mix task overwrite the definition and all calls of the given function
with the new_name. If the arity is given to Module.name only functions
with the corresponding arity will be rewritten.
examples
Examples
mix recode.rename MyApp.hello say_hello
mix recode.rename MyApp.SomeMoudle.do_it/2 make
switchtes
Switchtes
--config- specifies an alternative config file.--dry,--no-dry- Activates/deactivates the dry mode. No file is overwritten in dry mode. Overwrites the corresponding value in the configuration.--verbose,--no-verbose- Activate/deactivates the verbose mode. Overwrites the corresponding value in the configuration.