diff options
author | jeremyfa <jeremy.faivre@gmail.com> | 2015-09-15 19:05:38 +0200 |
---|---|---|
committer | jeremyfa <jeremy.faivre@gmail.com> | 2015-09-15 19:05:38 +0200 |
commit | 8b103da6cdf0d7a3ee9a0ea8dcc5e00db68fcd47 (patch) | |
tree | f9e18897027f287ab8332543c747b1c1ffb72422 /README.md | |
parent | 799ed3af1a9e62910ef0a059b71e30b499ef5311 (diff) | |
download | yamljs-8b103da6cdf0d7a3ee9a0ea8dcc5e00db68fcd47.tar.gz |
Revert "Add support for output directory option"
This reverts commit 3422a8c3db65b55b8b2a96d29e2e1e71825e54bd.
It will be restored when tested. For now, we need to release a bug fix, better doing it without these untested changes.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -79,7 +79,7 @@ Then, two cli commands should become available: **yaml2json** and **json2yaml**. **yaml2json** ``` -usage: yaml2json [-h] [-v] [-p] [-i INDENTATION] [-s] [-r] [-o OUTPUT] [-w] input +usage: yaml2json [-h] [-v] [-p] [-i INDENTATION] [-s] [-r] [-w] input Positional arguments: input YAML file or directory containing YAML files. @@ -94,15 +94,13 @@ Optional arguments: -s, --save Save output inside JSON file(s) with the same name. -r, --recursive If the input is a directory, also find YAML files in sub-directories recursively. - -o OUTPUT, --output OUTPUT - The output directory. -w, --watch Watch for changes. ``` **json2yaml** ``` -usage: json2yaml [-h] [-v] [-d DEPTH] [-i INDENTATION] [-s] [-r] [-o OUTPUT] [-w] input +usage: json2yaml [-h] [-v] [-d DEPTH] [-i INDENTATION] [-s] [-r] [-w] input Positional arguments: input JSON file or directory containing JSON files. @@ -119,8 +117,6 @@ Optional arguments: -s, --save Save output inside YML file(s) with the same name. -r, --recursive If the input is a directory, also find JSON files in sub-directories recursively. - -o OUTPUT, --output OUTPUT - The output directory. -w, --watch Watch for changes. ``` @@ -142,10 +138,6 @@ yaml2json myfile.yml --pretty --save # Watch a full directory and convert any YAML file into its JSON equivalent yaml2json mydirectory --pretty --save --recursive -# Watch a full directory `mydirectory` and convert any YAML file into its -# JSON equivalent and place the generated JSON files in `otherdirectory` -yaml2json mydirectory --pretty --save --recursive --output otherdirectory - # Convert JSON to YAML and store output inside a JSON file json2yaml myfile.json > ouput.yml @@ -158,6 +150,3 @@ json2yaml myfile.json --indentation 4 # Watch a full directory and convert any JSON file into its YAML equivalent json2yaml mydirectory --pretty --save --recursive -# Watch a full directory `mydirectory` and convert any JSON file into its -# YAML equivalent and place the generated YAML files in `otherdirectory` -json2yaml mydirectory --pretty --save --recursive --output otherdirectory |