Skip to main content

Cmd

Enum Cmd 

Source
pub enum Cmd {
Show 17 variants Headroom(HeadroomArgs), Why { json: bool, }, Reclaim(ReclaimArgs), Stale { json: bool, limit: usize, }, Sandboxes { json: bool, }, Ns { json: bool, }, Ports { json: bool, exposed: bool, links: bool, }, Models { json: bool, no_hash: bool, }, Json { compact: bool, }, Ndjson { interval: Duration, count: Option<u64>, discard: bool, }, Serve { listen: Option<String>, allow_host: Vec<String>, max_requests: Option<usize>, }, Mcp { allow_actions: bool, }, Doctor { json: bool, no_probe: bool, }, Config { cmd: ConfigCmd, }, Theme { cmd: ThemeCmd, }, Keys { cmd: KeysCmd, }, Profile { cmd: ProfileCmd, },
}

Variants§

§

Headroom(HeadroomArgs)

Can I load this now? Exit 0 yes · 3 yes after reclaim · 4 no · 1 unmeasurable.

§

Why

Ranked causes of slowness / memory pressure, with evidence.

Fields

§json: bool
§

Reclaim(ReclaimArgs)

Idle build daemons, orphans and idle model servers; stops only after confirmation (or –yes).

§

Stale

Stale groups ranked with their evidence, leftovers of ended agent sessions, duplicates.

Fields

§json: bool
§limit: usize

Show at most N groups.

§

Sandboxes

Containers, VMs and local Kubernetes: limits with OOM ETAs, the cluster tree, VM slack, stale containers.

Fields

§json: bool
§

Ns

Linux namespace sets: processes grouped by the namespaces they do not share with oomtop.

Fields

§json: bool
§

Ports

Listening ports → process → group, exposure, tunnels, conflicts, and who talks to whom.

Fields

§json: bool
§exposed: bool

Only listeners on all interfaces (0.0.0.0 / ::) and the exposure findings.

§links: bool

Also show local connections between groups (loopback TCP, unix sockets where visible).

§

Models

Model files on disk: size, last use, duplicates, and which server has each loaded.

Fields

§json: bool
§no_hash: bool

Skip the partial hash of same-size files (duplicate detection).

§

Json

One snapshot as JSON (schema_version 1, command lines redacted).

Fields

§compact: bool

Single-line output.

§

Ndjson

Snapshots as newline-delimited JSON (one per interval).

Fields

§interval: Duration

Time between snapshots (min 250ms).

§count: Option<u64>

Stop after N snapshots (0 prints none). A replay also stops after its last frame.

§discard: bool

Run the sampling pipeline but print nothing (perf measurement, SPEC §14).

§

Serve

HTTP JSON + Prometheus /metrics (binds 127.0.0.1 unless told otherwise).

Fields

§listen: Option<String>

Listen address (default from serve.listen: 127.0.0.1:9469).

§allow_host: Vec<String>

Also accept requests whose Host header is NAME (repeatable), e.g. a reverse proxy’s public name. Always accepted: loopback names; on a non-loopback bind also IP addresses and this host’s name.

§max_requests: Option<usize>

Exit after N requests (testing).

§

Mcp

MCP server over stdio (read-only tools unless –allow-actions).

Fields

§allow_actions: bool

Register the elicitation-gated reclaim tool.

§

Doctor

Detected capabilities, each source’s status and why, config/state locations.

Fields

§json: bool
§no_probe: bool

Don’t query the terminal (OSC 11 / Kitty keyboard / DECRQM); report environment-based guesses only.

§

Config

Configuration files (layered, comment-preserving).

Fields

§

Theme

Themes (semantic tokens).

Fields

§

Keys

Key bindings.

Fields

§

Profile

Local personalization profile (never leaves this machine).

Fields

Trait Implementations§

Source§

impl Debug for Cmd

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Cmd

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Cmd

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

§

impl Forget for Cmd

§

impl Freeze for Cmd

§

impl Move for Cmd

§

impl RefUnwindSafe for Cmd

§

impl Send for Cmd
where RawVecInner: Send,

§

impl Sync for Cmd
where RawVecInner: Sync,

§

impl Unpin for Cmd
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Cmd

§

impl UnwindSafe for Cmd
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.