OrmaosDocs

Reference

CLI reference

Every verb of the ormaos command line, with its arguments as the argument parser of the documented version defines them.

View as Markdown
text
ormaos [-h] [--version] <verb> ...

ormaos run records; every other verb reads what is in .ormaos/ of the current directory and never runs the program. The tables on these pages are read from the argument parser of ormaos at the pinned commit; the text around them explains each argument.

VerbFrom the parser
ormaos runrun a command and record the Python processes it starts
ormaos showshow the overview of a recording
ormaos treeshow the calls below an address
ormaos exceptionsshow the exceptions of an address, swallowed first
ormaos pathshow the lines a call ran, in order
ormaos ioshow the I/O of an address: database, files, subprocesses, HTTP
ormaos logsshow the logging records of an address, also the ones the level dropped
ormaos diffshow what two recordings did differently
ormaos listlist the recordings, newest first
ormaos statuswhat ormaos can do here, and what is in .ormaos/ now
ormaos guidehow to use ormaos, for a coding agent (start here)

Options of ormaos itself#

--version#

Prints the version and exits with 0.

order-sync
$ ormaos --version
ormaos 0.0.1

-h, --help#

ormaos --help lists the verbs; ormaos <verb> --help describes one verb and ends with an example.

order-sync
$ ormaos --help
usage: ormaos [-h] [--version] <verb> ...

Records what happened inside a Python execution and shows it: what ran, how often, what was raised and caught, what I/O happened, what was not recorded. You, or your coding agent, decide whether that is what should have happened.

positional arguments:
  <verb>
    run         run a command and record the Python processes it starts
    show        show the overview of a recording
    tree        show the calls below an address
    exceptions  show the exceptions of an address, swallowed first
    path        show the lines a call ran, in order
    io          show the I/O of an address: database, files, subprocesses,
                HTTP
    logs        show the logging records of an address, also the ones the
                level dropped
    diff        show what two recordings did differently
    list        list the recordings, newest first
    status      what ormaos can do here, and what is in .ormaos/ now
    guide       how to use ormaos, for a coding agent (start here)

options:
  -h, --help    show this help message and exit
  --version     show program's version number and exit

start here:
  ormaos guide
  ormaos run -- python job.py

Rules for every verb#

  • An option is written in full: --lim is not --limit. A shortened option exits with 2.
  • The address of a reading verb defaults to last, the newest recording.
  • --json prints one JSON document on stdout, also for errors. See JSON output.
  • On a terminal the first line is bold, the addresses are colored and the next: line is dim. There is no color when the output is not a terminal, when NO_COLOR is set, or when TERM is dumb.
  • Exit codes: see Exit codes.