0.5.6 • Published 8 years ago
manuel-js v0.5.6
Manuel.JS
It's not manual, it's Manuel.
Manuel makes it easy to script up modifications to yaml or json files on Github, such as during a CI pipeline.
Installation
via npm
$ npm install -g manuel-jsUsage
export GH_TOKEN="<github personal access token with appropriate permissions>"
manuel \
--org dan-turner \
--repo manuel-js \
--branch test \
--file test/variables.yaml \
--author Manuel \
--email no-reply@manuel.fake \
--message "Update 'example-app'" \
--path example-app.image \
--value a98049c7251b6b12785da9666e10e14cd1cfcddcSupported Formats
Manuel supports both yaml and json, it will guess the format based on the extension of the --file argument or you can specify explicitly with the --format argument.
Configuration
Options can be specified as arguments (as above), or in config files, or a combination of both. Values are merged in the following order precedence, from lowest to highest:
<home directory>/.manuel.yml(good place to specifygithubToken)<current dir>/.manuel.yml- With the config argument
--config <path to a .yml> - As individual arguments as in the usage example
See .travis.yml for an example of leveraging a mix of config files and CLI arguments.