Expand description
scxcli’s public JSON, as scxtui reads it: the list --json output
(version 2). Defined here, against services/CATALOG.md, rather
than borrowed from the scx_catalog crate: scxtui is a client of
scxcli like any other and depends on the published contract, not on
the crate’s API. The fixture test at the bottom reads the shared
fixtures to keep the two in step.
The option validator mirrors the contract so that the TUI can refuse a bad option before spawning anything; scxcli’s own validation stays the authoritative one.
Re-exports§
use std::path::PathBuf;🔒use anyhow::Result;🔒use anyhow::bail;🔒use serde::Deserialize;🔒use serde::Deserialize;🔒use serde::Serialize;🔒use serde::Serialize;🔒
Structs§
- Current
get --json.- Failure
- Installed
- One installed scheduler the catalog does not hide.
- Kernel
- Listing
list --json.- Next
- Pick
- One recommended entry as
list --jsonprints it. - Running
- Unit
Constants§
- ADMIN_
PATH - DEFAULT_
ID - OUTPUT_
VERSION list --jsonandget --jsonversion this scxtui reads.- SHIPPED_
PATH
Functions§
- validate_
arg - 1 to 256 characters of ASCII letters, digits and
-_=.,:/+.