Create cliopatra YAML

``` glaze yaml misc/test-data/test.yaml \ --input-is-array --format json \ --create-cliopatra | tee /tmp/yaml-json.yaml ```

Sections

Terminology & Glossary
📖 Documentation
Navigation
60 sectionsv0.1
📄 Create cliopatra YAML — glaze help cliopatra-capture
cliopatra-capture

Create cliopatra YAML

``` glaze yaml misc/test-data/test.yaml \ --input-is-array --format json \ --create-cliopatra | tee /tmp/yaml-json.yaml ```

Examplecliopatrayamljsoncsvcreate-cliopatra

You can create a skeleton for use with cliopatra, which executes programs from a small YAML description containing arguments and default flag values.

Passing --create-cliopatra to a Glazed command captures its current flags and arguments, maps them to the command's field definitions, and emits a reusable YAML invocation.

$ glaze yaml misc/test-data/test.yaml \
    --input-is-array --format json \
    --create-cliopatra > /tmp/yaml-json.yaml

$ cliopatra run /tmp/yaml-json.yaml
[
  {
    "foo": 1,
    "baz": 2
  }
]

Structured commands expose --format, --output-fields, and --max-output-rows; all three can be captured like ordinary typed command fields.