Directories
¶
| Path | Synopsis |
|---|---|
|
Package app holds what commands share that does not depend on the command-line parser: the SDK client, output mode, dry runs, prompts and waiting for jobs.
|
Package app holds what commands share that does not depend on the command-line parser: the SDK client, output mode, dry runs, prompts and waiting for jobs. |
|
Package build reports which build of the CLI is running.
|
Package build reports which build of the CLI is running. |
|
Package clitest runs chronos commands against a fake API in tests.
|
Package clitest runs chronos commands against a fake API in tests. |
|
cmd
|
|
|
root
Package root assembles the chronos command tree and owns the process's exit code.
|
Package root assembles the chronos command tree and owns the process's exit code. |
|
Package cmdutil builds cobra commands on top of app: leaf commands that print a view and report errors the same way, command groups, and argument checks.
|
Package cmdutil builds cobra commands on top of app: leaf commands that print a view and report errors the same way, command groups, and argument checks. |
|
Package config saves a login (an API key or an OAuth token) in the keychain or the config file, and decides which credential and base URL a command uses.
|
Package config saves a login (an API key or an OAuth token) in the keychain or the config file, and decides which credential and base URL a command uses. |
|
Package exit maps failures to the CLI's documented exit codes and to the error object printed with --json.
|
Package exit maps failures to the CLI's documented exit codes and to the error object printed with --json. |
|
Package input parses flag values into API request values.
|
Package input parses flag values into API request values. |
|
Package oauth runs the browser login against the Chronos API: the authorization code flow with PKCE, a loopback listener for the redirect, the token exchange and revocation.
|
Package oauth runs the browser login against the Chronos API: the authorization code flow with PKCE, a loopback listener for the redirect, the token exchange and revocation. |
|
Package output prints command results: JSON with --json, otherwise tables and key-value lines for a terminal, or tab-separated values when piped.
|
Package output prints command results: JSON with --json, otherwise tables and key-value lines for a terminal, or tab-separated values when piped. |
|
Package ping sends pings to a heartbeat monitor through the Ping API, a POST to the monitor's ping URL or to /start, /fail or /<exit-code> after it.
|
Package ping sends pings to a heartbeat monitor through the Ping API, a POST to the monitor's ping URL or to /start, /fail or /<exit-code> after it. |
|
Package subprocess runs a command for the user.
|
Package subprocess runs a command for the user. |
|
Package transport sits between the SDK and the network.
|
Package transport sits between the SDK and the network. |
Click to show internal directories.
Click to hide internal directories.