Skip to main content

Module model

Module model 

Source
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 --json prints it.
Running
Unit

Constants§

ADMIN_PATH
DEFAULT_ID
OUTPUT_VERSION
list --json and get --json version this scxtui reads.
SHIPPED_PATH

Functions§

validate_arg
1 to 256 characters of ASCII letters, digits and -_=.,:/+.