pub enum ProgramKind {
Search,
Vcs,
Build,
Network,
Container,
Remote,
Elevation,
Destructive,
ScriptingRuntime,
Yah,
Mcp,
}Expand description
Coarse category for a primary program. Stable identifier used downstream for icon selection, activity bucketing, and permission heuristics.
Adding a kind is cheap; removing or renaming one is a breaking change for
every consumer (the TS mirror, kindToGlyph, the activity report). Prefer
extending [PROGRAM_KIND_TABLE] over inventing new variants.
Variants§
Search
Read-only inspection / search: ls, grep, rg, find, cat,
head, tail, wc, file, stat, du, awk, sed, jq.
Vcs
Version control: git.
Build
Build / package tooling: cargo, npm, bun, pnpm, yarn,
make, rustc.
Network
Network clients: curl, wget, gh, http.
Container
Containers: docker, podman, kubectl.
Remote
Remote shells / copy: ssh, scp, rsync.
Elevation
Privilege elevation: sudo, su.
Destructive
Destructive filesystem / process ops: rm, rmdir, mv, kill,
pkill, shutdown, reboot, dd.
ScriptingRuntime
Scripting runtimes: python, python3, node, ruby, perl,
deno, lua, php.
Yah
The yah CLI itself.
Mcp
Model Context Protocol servers / clients. Matched by exact name or
by substring on the program name (mcp-server-foo, foo-mcp) when
the exact-match table misses — see kind_for.
Trait Implementations§
Source§impl Clone for ProgramKind
impl Clone for ProgramKind
Source§fn clone(&self) -> ProgramKind
fn clone(&self) -> ProgramKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more