retrofit
0.15.0-wip.89
retrofit.sh

These docs are for 0.15.0-wip.89, a WIP, and may describe what no release does yet. The newest release is 0.14.0: this page for 0.14.0.

retrofit op revise

Patch bound parameters on an unsealed op

Synopsis

Usage:
  retrofit op revise <opid> [<key>=<value>...] [flags]

Options

Flags:
      --batch         read newline-separated revise commands from stdin (transactional)
      --dry-run       preview the proposed tail without writing
  -h, --help          help for revise
      --help-all      show extended help (vocabulary, semantics, caveats)
  -i, --interactive   open an editor on the selector's ops

Global options

Global Flags:
      --as string        output mode: text | json (default "text")
  -C, --chdir string     treat <dir> as the working directory for the entire run
      --config string    retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
  -f, --file string      oplog file path; selects a registered [[schema]] path (overrides discovery)
      --no-consolidate   render every advisory occurrence instead of collapsing repeats
  -q, --quiet count      suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
      --schema <name>    registered schema <name> (resolves via the chain when omitted)
  -v, --verbose          reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/wip/commands/retrofit-op-revise/

retrofit op revise --help-all adds:

Extended help:

Finding the <opid>:

  Default `retrofit op show` emits each op in on-disk record
  grammar with the opid as the first field:

    AddColumn(988edcb612ab, prev=…, in=…, name="email", …)
    ^^^^^^^^^ ^^^^^^^^^^^^
    operator  opid (12 hex)

  Pass any unique opid prefix of 1-12 hex chars; the short opids
  `op show --framing=revise` prints are 4 chars or more.
  Useful framings:
    retrofit op show --framing=revise   # emits ready-to-edit `op revise <short> ...` lines
    retrofit op show --as=json          # NDJSON record per op

`op revise -i` opens $EDITOR with the selector's ops in buffer form
so you can pick by line instead of opid.

Before 1.0, any release may change behavior; the release notes list what changed.

Published .