0.1.2 • Published 6 years ago

@kobionic/cli v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

npm version Build Status Dependencies Status DevDependencies Status License

Generic CLI application that dynamically loads modules from specified directory at runtime.


Usage: cli <command> [options]

Commands:
  cli mycommand   Does whatever a command can              [aliases: m, mod]

Options:
  ----commands-dir, -m  Specify directory to load commands from   [string]
  --help, -h           Show help                                 [boolean]
  --version, -v        Show version number                       [boolean]

Install CLI application

The package is published on npm and can be installed by running the following command:

npm install [--global] @kobionic/cli

Usage

Base commands

Basic commands are provided with the CLI application.

CommandTypeDescription
completionbooleangenerates bash completion script

Base options

Basic commands are provided with the CLI application.

OptionAliasRequiresArgTypeDescription
--commands-dir-mtruestringsets directory to load commands from
--help-hbooleanshows help
--version-vbooleanshows version number

Environment variables

Environment variables can be used to configure the application. Be careful as they take precedence over options passed to the CLI application!

VariableTypeDefaultDescription
CLI_COMMANDS_DIRstring<project-root>/cmdsthe directory containing commands to be loaded at runtime

Authors

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago