0.1.1 • Published 7 years ago
@diwala/configurator v0.1.1
config-cli
This is a all purpose configurator for node & javascript apps
Usage
$ npm install -g @diwala/configurator
$ configurator COMMAND
running command...
$ configurator (-v|--version|version)
@diwala/configurator/0.1.0 darwin-x64 node-v9.10.0
$ configurator --help [COMMAND]
USAGE
  $ configurator COMMAND
...Commands
configurator help [COMMAND]
display help for configurator
USAGE
  $ configurator help [COMMAND]
ARGUMENTS
  COMMAND  command to show help for
OPTIONS
  --all  see all commands in CLISee code: @oclif/plugin-help
configurator setup TOKEN
this is used by to setup all service configs based on a strict github folder structure
USAGE
  $ configurator setup TOKEN
ARGUMENTS
  TOKEN  Github API token
OPTIONS
  -b, --branch=branch            [default: master] The branch you want to target
  -e, --environment=environment  [default: dev] environment to choose, will use this folder under your choosen
                                 service/app
  -f, --service=service          (required) The folder of the service/app you want fetch configuration
  -h, --help                     show CLI help
  -r, --repo=repo                (required) Github repo the files exist
EXAMPLES
  This fetches (configuration) files based on your folder structure in your Github repo
  $ configurator d589d6c3dc87d0df365110f12ce22d5b37b5awds -r facebook/react -f .circleci
  $ configurator d589d6c3dc87d0df365110f12ce22d5b37b5awds -e sys -r facebook/watchman -f winbuild
  PS. make sure to write the repo correctlySee code: src/commands/setup.ts