CLI tool that commonizes the commands which show documentation.
There are so many CLI tools in the world, and they have different methods for printing documentation.
For example:
man <command>
<command> help [...subcommand]
<command> [...subcommand] --help
<command> [...subcommand] help
(It's rare case. I only know aws-cli.)
h
does commonize them to h <command> [...subcommand]
.
Execute above help commands orderly until exits successfully.
Some commands that have defferent pattern like aws-cli are handled specially.
npm install --global @aku11i/h
h <command> [...subcommand]
Examples:
# execute `man sed`
h sed
# execute `git help clone`
h git clone
# execute `docker images list --help`
h docker images list
# execute `aws s3 help`
h aws s3
NODE_ENV=development h <command> [...subcommand]
git clone https://github.com/aku11i/h
npm install
npm run --silent dev -- <command> [...subcommand]