From 8a65822b0b214da151563df8debe13e30b08d53d Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 20 Jan 2020 08:35:03 +1100 Subject: [PATCH] Updated docs to include value parsing --- docs/404.html | 20 +- docs/convert/index.html | 24 +- docs/create/index.html | 24 +- docs/delete/index.html | 122 +++-- docs/index.html | 24 +- docs/merge/index.html | 131 ++++-- docs/path_expressions/index.html | 112 ++++- docs/prefix/index.html | 127 +++--- docs/read/index.html | 233 +++------- docs/search/search_index.json | 2 +- docs/sitemap.xml | 23 +- docs/sitemap.xml.gz | Bin 201 -> 201 bytes docs/value_parsing/index.html | 759 +++++++++++++++++++++++++++++++ docs/write/index.html | 292 ++++-------- mkdocs.yml | 3 +- mkdocs/value_parsing.md | 161 +++++++ 16 files changed, 1502 insertions(+), 555 deletions(-) create mode 100644 docs/value_parsing/index.html create mode 100644 mkdocs/value_parsing.md diff --git a/docs/404.html b/docs/404.html index a6337614..afb1b529 100644 --- a/docs/404.html +++ b/docs/404.html @@ -237,8 +237,8 @@
  • - - Read + + Path Expressions
  • @@ -249,8 +249,20 @@
  • - - Path Expressions + + Value Parsing + +
  • + + + + + + + +
  • + + Read
  • diff --git a/docs/convert/index.html b/docs/convert/index.html index 7ed7ef07..06db1c82 100644 --- a/docs/convert/index.html +++ b/docs/convert/index.html @@ -241,8 +241,8 @@
  • - - Read + + Path Expressions
  • @@ -253,8 +253,20 @@
  • - - Path Expressions + + Value Parsing + +
  • + + + + + + + +
  • + + Read
  • @@ -425,7 +437,7 @@

    Convert

    -

    Yaml to Json

    +

    Yaml to Json

    To convert output to json, use the --tojson (or -j) flag. This is supported by all commands.

    Each matching yaml node will be converted to json and printed out on a separate line.

    Given a sample.yaml file of:

    @@ -457,7 +469,7 @@ bab: {"c":5} -

    Json to Yaml

    +

    Json to Yaml

    To read in json, just pass in a json file instead of yaml, it will just work :)

    e.g given a json file

    {"a":"Easy! as one two three","b":{"c":2,"d":[3,4]}}
    diff --git a/docs/create/index.html b/docs/create/index.html
    index 7114b530..550fc9c9 100644
    --- a/docs/create/index.html
    +++ b/docs/create/index.html
    @@ -241,8 +241,8 @@
     
     
       
  • - - Read + + Path Expressions
  • @@ -253,8 +253,20 @@
  • - - Path Expressions + + Value Parsing + +
  • + + + + + + + +
  • + + Read
  • @@ -430,7 +442,7 @@

    Yaml files can be created using the 'new' command. This works in the same way as the write command, but you don't pass in an existing Yaml file. Currently this does not support creating multiple documents in a single yaml file.

    See docs for path expression

    -

    Creating a simple yaml file

    +

    Creating a simple yaml file

    yq n b.c cat
     
    @@ -439,7 +451,7 @@ c: cat
    -

    Creating using a create script

    +

    Creating using a create script

    Create scripts follow the same format as the update scripts.

    Given a script create_instructions.yaml of:

    - command: update 
    diff --git a/docs/delete/index.html b/docs/delete/index.html
    index 42b4d97f..87a60ee4 100644
    --- a/docs/delete/index.html
    +++ b/docs/delete/index.html
    @@ -94,7 +94,7 @@
         
         
         
    -      
    +      
             Skip to content
           
         
    @@ -241,8 +241,8 @@
     
     
       
  • - - Read + + Path Expressions
  • @@ -253,8 +253,20 @@
  • - - Path Expressions + + Value Parsing + +
  • + + + + + + + +
  • + + Read
  • @@ -311,6 +323,13 @@