@aku11i/h
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

h

CLI tool that commonizes the commands which show documentation.

About

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] .

How does it work

Execute above help commands orderly until exits successfully.

Some commands that have defferent pattern like aws-cli are handled specially.

Install

npm install --global @aku11i/h

Usage

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

I want to know which command is executed.

NODE_ENV=development h <command> [...subcommand]

Development

git clone https://github.com/aku11i/h
npm install
npm run --silent dev -- <command> [...subcommand]

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @aku11i/h

    Weekly Downloads

    2

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    18.5 kB

    Total Files

    33

    Last publish

    Collaborators

    • aku11i