lucytidy.pl - Auto-format Lucy code.
lucytidy.pl [options] PATH
Lucy uses various automatic code formatters for the different languages it supports: AStyle, a.k.a. Artistic Style, for C code, Perltidy for Perl, etc. This wrapper script walks the directory structure pointed to by the supplied PATH and decides based on file type which formatter to run. It also works around some formatter quirks and bugs so that we don't have to live with compromises in our actual code.
PATH
lucytidy.pl --suffix="" PATH
The suffix for the tidied file. The default is "tdy". Supplying an empty string causes the original file to be overwritten.
lucytidy.pl --astyle=/path/to/alternative/astyle PATH
Specify the location of the astyle executable.
lucytidy.pl --perltidy=/path/to/alternative/perltidy PATH
Specify the location of the perltidy executable.
To install Lucy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy
CPAN shell
perl -MCPAN -e shell install Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.