Every Tooee command, flag, terminal channel, output, and exit code.
tooee <command> [options]
tooee, tooee help, tooee --help, and tooee -h print the usage text to stdout and exit with code 0. An unknown command prints Unknown command: <name> to stderr, prints the usage text to stdout, and exits with code 2.
Interactive commands separate terminal traffic from command data:
Channel
Purpose
process stdin
Piped items or content
controlling terminal input
Keyboard events when stdin is a pipe
controlling terminal output
Alternate-screen drawing when stdout is redirected
process stdout
Submitted text and selected values
process stderr
Usage and startup errors
When process stdin or stdout already points at a terminal, Tooee uses that stream directly. Each command restores the terminal when its screen closes. A session that needs /dev/tty and cannot open it prints an error to stderr and exits with code 2.
A file or a directory. When omitted, View reads stdin.
--renderer <name>, -r <name>, --renderer=<name>
Force a renderer: markdown, code, text, table, diff.
--outline
Open the heading outline beside Markdown content at start. Other formats ignore it.
Case
Behaviour
File
Renderer from the extension; see the table in View. A text file that holds a unified patch opens as a diff.
Directory
Opens the directory view. --renderer with a directory prints --renderer cannot be used with directory view and exits with code 2.
stdin
Reads all of stdin, then remains interactive through the controlling terminal. Renders as markdown or as a diff when it is a patch, unless --renderer is set.
Unknown renderer
Prints Unknown renderer: <name> and the list of values. Exit code 2.