cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
fmt/yscal.bend
- def kv.colon
- def kv.after
- def kv.quoted
- def kv.pick
- def split_kvThe `key: rest` a line spells, when it spells one.
- def field.cons
- def map.piece
- def map.consMerge one piece's field in front of the chain.
- def map.items
- def map.fin
- def flow.pick
- def scalarA value after `key:` or `- `: flow collection, quoted or plain scalar.
frame.bend
- type Cut
- def nl.pick
- def nl.findIndex of the first LF.
- def blank.findIndex of the LF that ends a blank line: an LF whose previous line break was an LF too (CR before either is ignored).
- def cut.at
- def takeThe first message of `buf` (json: a line; block: up to a blank line) and the rest, none while the message is incomplete.
- def blankIs there anything but white space?
fs.bend
- def Res
- def proc.timeout
- def proc.max
- def tool.status
- def tool.outRun a tool; Done{stdout} on exit status 0, else Fail{(status, stderr)}.
- def tool.unit
- def tool
- def tool_unit
- def thenRun `next` only when the previous step worked.
- def read.done
- def read.sized2
- def read.sized
- def read.open
- def read_fileThe whole file as text.
- def exists.of
- def existsDoes the path exist (a file, directory or the target of a symlink)?
- def names.keep
- def names
- def list.of
- def list_dirEntry names of a directory (hidden ones included, `.` and `..` not), in `ls` order.
- def sel.s
- def slash.pick
- def slash.dropDrop through the first `/` (the input is a reversed path).
- def dirname.fin
- def dirnameEverything before the last `/`: "a/b/c" is "a/b", "/x" is "/", "x" is ".".
- def read.stdin
- def read_stdinWhat is on standard input, up to 1 MiB, in one read: "" at end of file.
fs/write.bend
- def create.done
- def createCreate an empty file (a no-op on an existing one).
- def put.close
- def put.write
- def putTruncate and write `data` (the file keeps its mode if it exists).
- def chmod
- def rename
- def removeDelete a file; a missing file is not an error.
- def mkdir_p
- def publish.fail
- def publish.mv
- def publish.put
- def publish.chmod
- def publish.create
- def publish.tmp
- def write_atomicWrite `data` to a sibling temp file, give it `mode` (an octal string such as "600") while it is still empty, then rename it over `path`.
- def appendAppend `data` to a file, creating it (a log line at a time).
gflags.bend
- type G
- def start
- def with_fmt
- def pend
- def with_noin
- def with_yes
- def keep
- def is_pending
- def sel.g
- def free
- def step
- def go
- def end2
- def splitThe words left, the format name given, and the two switches.
http.bend
- def quote.pick
- def quote.char
- def quoteThe body of a quoted curl config value: `\` and `"` escaped.
- def line
- def header.line
- def headers
- def body.pick
- def body.line
- def configcurl config for one request.
- def header.pickHeader lookup, case-insensitive on the name.
- def header.match
- def header.find
- def header
- def runRun one request: answers curl's exit status and (stdout, stderr).
- def after_headers.pick
- def after_headersLines after the header block (the first blank line).
- def last_line.pick
- def statusThe HTTP status `config` asked curl to append as the last line; 0 when absent.
- def body.of
- def bodyThe body: what lies between the headers and the status line.
- def rewrite.pick
- def rewriteWith CSWAP_TEST_HTTP_BASE set (`base` non-empty), `https://host/path` goes to `base/host/path`: plain http, same headers and body (contract section 5).
- def base.pick