src - source management script.
- convert to uft-8; - strip BOM header; - convert tabs to spaces; - trim trailing spaces; - trim trailing empty strings; - convert line endings to unix style (\x0A);
Exit codes:
0 - source is valid; 1 - run-time error; 2 - params error; 3 - source error;
Specifies sources for processing. Use "-" for STDIN mode.
Action to process. Available actions:
decompress - unpack sources, DEFAULT; compress - pack sources, comments will be deleted; obfuscate - applied only for javascript and embedded javascripts, comments will be deleted; hg-pre-commit - mercurial pre-commit hook, recognize "#no critic" in commit message;
Define source files to process. Mandatory, if <source> is a directory. Recognized types: perl, html, css, js.
Mandatory, if <source> is a STDIN.
Don't save changes.
Don't close console after script finished.
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.