cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
fmt/out.bend
- def plain
- def doc2
- def doc_ofThe JSON document a command's output stands for: its own JSON when stdout holds an object or array; else `{schemaVersion, message}` for a success and `{schemaVersion, error:{type, message}}` for an exit-1 error that went to stderr; none for a usage error (exit 2).
- def keep_err
- def conv2
- def conv
- def convertThe command's output in format `f` (text leaves it alone, and so does json when the command already printed JSON: that output is the --json output).
- def stream_headPrinted once before the first event (CSV: the header line).
- def event_textOne event as the text IO.print puts on its own line(s): a JSON line, a CSV row, a `---` YAML document, a TOON document followed by a blank line.
fmt/shape.bend
- type Col
- type Leaf
- def or_null
- def get_or_null
- def pathThe value at a key path; null when any step is missing.
- def is_scalar
- def scalA scalar as its text; a container as compact JSON.
- def all_scalar
- def sep_of
- def joined
- def cell.arr
- def cell
- def col
- def headers
- def cells
- def rows
- def table
- def account_cols
- def setting_cols
- def profile_cols
- def event_cols
- def event_headerThe header line of the `auto` event stream.
- def event_rowOne event as a CSV row (no header, no line end).
- def dotted
- def is_empty_obj
- def leaf.pick
- def leavesThe scalar leaves of a document with dotted keys; an array is one leaf.
- def leaf_headers
- def leaf_values
- def leaf_pairs
- def wide.of
- def wideOne row: the leaves as columns.
- def kvkey,value rows.
- def items_at
- def status_rowsThe active account of a status document as a list of at most one row.
- def some
- def has_error
- def by_key
- def csv_ofThe CSV text of a command's document.
fmt/toon.bend
- def to_toon
- def of_toon
- def emitTOON text (indent 2, comma delimiter, LF, no trailing newline).
- def lift
- def parseThe value of TOON text (strict mode); `Fail` starts with the line number.
fmt/yaml.bend
- def emit
- def flowy
- def parse.jsonJSON is YAML: a document that opens with `{` or `[` is read as JSON when it is JSON (nested flow collections, quoted keys), else by the block reader.
- def parse.pick
- def parse
fmt/yamlr.bend
- type Ln
- type PlanWhat `val` does next.
- def lead.countLeading spaces; a tab in the indentation is an error (-1 is not a Nat, so the flag travels beside).
- def tab_lead
- def is_comment
- type Acc
- def acc.add
- def acc.fail
- def acc.skip
- def acc.marker
- def acc.seen
- def acc.line2
- def acc.line
- def acc.go
- def lines.fin
- def lines_of
- def all_ge
- def is_dash
- def key_empty.of
- def key_empty
- type Sp
- def sp.start
- def sp.more
- def sp.hold
- def sp.step2A line at the block's indent opens an entry, except a `- ` line right under an empty `key:` of a mapping (the sequence PyYAML writes at the key's indent).
- def sp.step
- def sp.go
- def sp.fin
- def split
- def bad
- def item.text
- def item.rest
- def item.block
- def items.head
- def plan.items
- def field.extra
- def field.both
- def field.inline
- def field.kv
- def plan.fields
- type BKind
- def kind.of2