ymal
v0.1.0
Published
The command line utility for modifiying [yaml] files
Downloads
48
Readme
YMal
YMal — The command line utility for modifiying YAML files
Usage
Usage: ymal [options] [command]
Commands:
help Display help
Options:
-C, --classes-to-remove List of classes to remove
-f, --file YAML file path
-h, --help Output usage information
-P, --pattern-to-remove-classes Remove classes by pattern o_O!
-s, --set-value Set property value form: `property=value`
-v, --version Output the version number
Sample
# Removes classes starts with `tst_` and
# sets `classes.languages::list.perl` property value to `Silver`
# Short form
ymal -f sample.yaml -s 'classes.languages::list.perl=Silver' -P '^tst_'
# Long form
ymal --file=sample.yaml --set-value='classes.languages::list.perl=Silver' \
--pattern-to-remove-classes='^tst_'
Contribute
- Fork this repository to your own GitHub account and then clone it to your local device
- Uninstall now-serve if it's already installed:
npm uninstall -g ymal
- Link it to the global module directory:
npm link
- Transpile the source code and watch for changes:
npm start
Credits
- Licensed under MIT.