Skip to main content

Module cli

Module cli 

Source
Expand description

The command-line interface: the server roles, db, the user CLI and the in-task CLI (see archive/PROJECT.md, Web UI and CLI; In-task CLI).

Structs§

Cli
The schedr command line.
ClientArgs
How the user CLI reaches the webserver (credentials are only sent, never validated here).
ConnectionArgs
schedr task-ctx connection NAME [--env PREFIX | --json].
FieldArg
A --field NAME option of the in-task CLI: print raw values instead of JSON.
LogsArgs
schedr tasks logs ....
TaskTarget
The task a schedr tasks command acts on.

Enums§

CleanupCommand
schedr task-ctx cleanup ....
Command
The top-level commands.
ConnectionsCommand
schedr connections ... (decisions 174, 193, 198-200): run on a worker, through the master.
DagCtxCommand
schedr dag-ctx ....
DagsCommand
schedr dags ....
DbCommand
schedr db ....
EventsCommand
schedr events ... (decision 354).
GetCommand
A get subcommand.
ResourceCommand
schedr task-ctx resource ....
ResourcesCommand
schedr resources ... (decision 340).
RunsCommand
schedr runs ....
SecretCommand
schedr task-ctx secret ....
SecretsCommand
schedr secrets ...: the db secret storage (see archive/PROJECT.md, Secret storage). Only get prints a value.
SensorsCommand
schedr sensors ... (decision 338).
TaskCtxCommand
schedr task-ctx ....
TaskEventsCommand
schedr task-ctx events ...: as schedr events, made as the task.
TasksCommand
schedr tasks ....
TriggersCommand
schedr triggers ... (decision 340’s reasons: they are not tasks).
WorkersCommand
schedr workers ....

Functions§

root_path
The root a --dag-path names: the path as given (its . components dropped), as the variable’s entries are, so a rename in [dags.roots] matches it; only a path with no name of its own is resolved: . is cwd, and one ending in .. its real path on the filesystem (a lexical .. would be wrong past a symbolic link; a missing one is left, and refused unnamed).