Skip to main content

Module app

Module app 

Source
Expand description

Running a parsed command: loading the configuration and dispatching to the command.

Enums§

AppError
Why a command failed; the binary prints it and exits with AppError::exit_code.

Functions§

connect
The client and output settings of a user CLI command: the server (connect_to), credentials (the password from SCHEDR_PASSWORD), --json and the local zone (TZ, else the system’s).
connect_to
The API client for url: the CLI’s credentials and the same poll, wait, connect and request timeouts as every other server command.
describe_status
A human-readable description of a schema status.
execute
Runs a parsed command.
load_config
Loads the configuration: chooses the file, reads it with read, and layers the environment on top. A missing default file is fine; a missing explicit one is an error.
load_config_with
As load_config, with the command’s options over the file and the environment.
local_config
The configuration of a local command (standalone, dags check, dags test): the built-in python interpreter looked for from here (see crate::interpreter).
role_config
The configuration with the built-in python interpreter looked for (see crate::interpreter::apply): project on for the local commands, off for a worker.
run_db
Runs a schedr db command against the configured database.