Expand description
Shared CLI definitions for datui.
Used by the main application and by the gen_docs binary, which writes the generated docs and the manpages from these definitions.
Modules§
- docgen
- The parts of the docs written from the code, and the one place that writes them.
- exit
- The exit statuses datui ends with: the binary returns these, and every manpage’s
EXIT STATUS section is rendered from
STATUSES. - keys
- The key registry: every key of every screen, in one table.
- man
- The manpages, rendered from the sources the docs render from: the clap
definitions, the option, environment and key registries, the format descriptors,
examples.tomland the query and format-spec references. - settings
- The option registry: every config key in one table, with its type, default, the line that documents it, and the flag that sets it for one run, if one does.
- units
- Sizes and durations written with their unit:
512MiB,250ms. One parser reads them from a config file, from-cand from a flag, so a value means the same wherever it is written.
Structs§
- Args
- Command-line arguments for datui.
- Conversion
- What the open says while a file is read into files of its own.
- Descriptor
- What datui knows of a format without reading a file of it.
- Example
- One entry of
EXAMPLES_TOML: a command and what it does. - Example
File - A file an
Examplereads: its name and its text. - Tables
- The tables in a file of a format.
Enums§
- Cache
Action - What
datui cachedoes. - Catalog
Action - What
datui catalogdoes. - Command
- Commands besides opening data.
- Compressed
- How a compressed file of a format is read.
- Compression
Format - Compression format for data files
- Config
Action - What
datui configdoes. - Example
Test - How the doc-example runner runs an
Example. - File
Format - A format datui reads, as
--formatnames it. - Format
Choice - What
--formatnames: a format datui reads, a format spec on the search path, or a spec’s file. - Formats
Action - What
datui formatsdoes besides listing. - Infer
Types - What
--infer-typesasks for. - Lines
- How a line of a line-oriented text format is read.
- Read
Mode - How an open reads a file. See
FileFormat::read_mode. - Remote
Read - How a remote object is read.
- Stored
- How a file sits on disk, where that changes how it is read.
- Summary
- What the Info panel shows of a file of a format besides its Schema tab.
- Theme
Action - What
datui themedoes. - Views
Action - What
datui viewsdoes.
Constants§
- COMPLETION_
FILES - Each shell’s completion script and the file name its shell loads it by: what a package or the release archive installs.
- EXAMPLES_
TOML - The examples:
--helpshows them, and the manpage, the command-line reference and the README render them. One file, so they cannot differ; each runs as written, andscripts/docs/doc_examples.pyruns them. - LOG_
LEVELS - The levels
--log-levelandDATUI_LOGtake. - NUMBER_
FORMAT_ VALUES - Accepted values for
--number-format.
Functions§
- check_
comment_ char - Why
ccannot mark comment lines, if it cannot: it must be something, and on one line.--comment, its config key and the Python option share it. - completions
- The completion script for
shell, built fromArgs, fordatui completions. - examples
- The entries of
EXAMPLES_TOML, in order. Panics on a malformed entry, whichevery_example_parses_as_writtenand every--helpreach first. - examples_
help - The examples as
--helpshows them, after the options. - examples_
of - The examples of manpage
page(datui.1), in order. - format_
help --format’s help, listing every format by name.- one_
table - Why
--tablewas refused for a file offormat(None: not known), which holds one table: the formats whose tables it picks. The reader names the file before it. - parse_
delimiter - A delimiter as people write it:
;,tab,\t, or a byte code such as0x1f. - render_
options_ markdown docs/reference/command-line-options.md: the usage, every option grouped as--helpgroups it, the commands and the examples. Written bygen_docs; a test fails while the committed page differs.- table_
help --table’s help: what it takes for each format whose tables it picks.