pub struct CommandSpec {
pub name: String,
pub description: String,
pub aliases: Vec<String>,
pub url: String,
pub category: String,
pub researched_version: Option<String>,
pub examples_safe: Vec<String>,
pub examples_denied: Vec<String>,
/* private fields */
}Fields§
§name: String§description: String§aliases: Vec<String>§url: String§category: String§researched_version: Option<String>Upstream version of the underlying tool that was researched
when this spec was last updated. Free-form string — e.g.
"1.9.0", "v5.10.3", "2026-05-08 master",
"@northflank/cli 0.10.15". Internal-only: not rendered in
docs or used at runtime. Surfaces in tests and as a tripwire
when researching newer versions of the same tool.
examples_safe: Vec<String>Sample invocations that the registry test runs through is_safe_command.
Each examples_safe entry must produce Verdict::Allowed.
examples_denied: Vec<String>Sample invocations that must be denied. Use these to lock in security
boundaries (e.g. srb tc --metrics-file=/etc/passwd should always
be denied; recording it here catches regressions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more