config-cli
This is a all purpose configurator for node & javascript appsUsage
```sh-session
$ 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
...
<!-- usagestop -->
# Commands
<!-- commands -->
* [`configurator help [COMMAND]`](#configurator-help-command)
* [`configurator setup TOKEN`](#configurator-setup-token)
## `configurator help [COMMAND]`
display help for configurator
USAGE
$ configurator help COMMANDARGUMENTS COMMAND command to show help for
OPTIONS --all see all commands in CLI
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.0/src/commands/help.ts)_
## `configurator setup TOKEN`
this is used by to setup all service configs based on a strict github folder structure
USAGE
$ configurator setup TOKENARGUMENTS 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 correctly ```
See code: src/commands/setup.ts