retrofit0.10.0-wip.8

retrofit op remove

Drop one or more unsealed ops from the oplog

Usage:
  retrofit op remove <selector> [flags]

Flags:
      --dry-run    preview the opids that would be removed without writing
  -h, --help       help for remove
      --help-all   show extended help (vocabulary, semantics, caveats)

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/current/commands/retrofit-op-remove/

retrofit op remove --help-all adds:

Extended help:

Finding the <selector>:

  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 prefix (>=4 chars). `op remove` also accepts
  range syntax (`<from>..<to>`) and the canonical anchors
  `root` / `last` / `seal` with an optional `^` / `~N` decrement
  (e.g. `seal^`, `last~2`).

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