1.0.7 • Published 3 years ago

cli-docs-generator v1.0.7

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

cli-docs-generator

This package allows you to generate markdown docs for yargs CLI. This docs was generated by using cli-docs-generator. More examples: githelp.

Install

$ npm i cli-docs-generator -g

Usage

$ cli-docs-generator --help

Help output:

Options:
  --version          Show version number  [boolean]
  -v, --verbose      Show details about the result of running command  [boolean] [default: true]
  -o, --output       Output file  [string] [default: "./README.md"]
  --cli              Path to executable file of the CLI for which documentation is generated (if --cli started with './', '../' or '/', you can specify --pretty_cli_name otherwise --cli will be interpreted as the executable from the $PATH environment variable, and --pretty_cli_name will be ignored)  [string] [required]
  --pretty_cli_name  A string that replaces the program name specified in --cli (this parameter will be ignored if the --cli value does not start with './', '../' or '/')  [string]
  -d, --description  CLI description  [string]
  -l, --license      License type  [string] [default: "MIT"]
  -h, --help         Show help  [boolean]

Examples:
  '$ cli-docs-generator --cli=githelp'                                    Generate markdown docs for 'githelp' CLI to the 'README.md' file
  '$ cli-docs-generator --cli=/path/to/cli.js --pretty_cli_name=my-cli'   Generate markdown docs for 'my-cli' CLI to the 'README.md' file
  '$ cli-docs-generator --cli=./path/to/cli.js --pretty_cli_name=my-cli'  Generate markdown docs for 'my-cli' CLI to the 'README.md' file

License

MIT.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago