@diwala/configurator
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

config-cli

This is a all purpose configurator for node & javascript apps

oclif Version CircleCI Codecov Downloads/week License

Usage

$ npm install -g @diwala/configurator
$ configurator COMMAND
running command...
$ configurator (-v|--version|version)
@diwala/configurator/0.1.1 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 CLI

See 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 correctly

See code: src/commands/setup.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @diwala/configurator

Weekly Downloads

8

Version

0.1.1

License

MIT

Unpacked Size

166 kB

Total Files

53

Last publish

Collaborators

  • bob-diwala
  • snorlock