zostay / app-colorist Goto Github PK
View Code? Open in Web Editor NEWAdd color to your plain old outputs
Add color to your plain old outputs
This didn't work during my final testing:
cpanm Test::Pod | colorist -c cpanm
It quit with no output and cpanm
did not finish (i.e., it wasn't just that the output was consumed and thrown away). I don't know that I tested this since I create App::Colorist from my original colorizer script, so this is probably something inherent with how I'm messing with the ARGV
file handle.
Hello,
It seems the aliased cpanm command can't accept command line arguments/flags:
cpanm -v App::Colorist
Unknown option: v
usage: colorist [-?CcEehIR] [long options...]
-h -? --usage --help Prints this usage information.
-c --configuration
-R --ruleset
-C --colorset
-I --include
--debug
-e --execute
-E --stderr
A command's output can child greatly with the addition of options and sub-commands. Need a way to identify these variants and cope.
For example, in cpanm, if you add -v, you will see all the build output. At which point, it would be nice to use a ruleset/colorset aimed at handling the make or something.
Another example is git or dzil, which might have different colors based upon the sub-command (git show versus git name-rev, dzil test versus dzil release, etc.) being run. These might also just be cases of having really large rulesets, but there are cases where options might require a different set of rules.
Hello,
Just installed App::Colorist (0.142540) from CPAN under perl-5.16.1, but on first run I got this error:
colorist -E cpanm App::Colorist
Unable to locate rules "rules" in paths: /home/arpi/.colorist /etc/colorist at reader App::Colorist::Colorizer::ruleset_file (defined at /home/arpi/.local/opt/perl5/perls/perl-5.16.1/lib/site_perl/5.16.1/App/Colorist/Colorizer.pm line 132) line 7.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.