pub enum TopCommand {
Capabilities,
Describe {
capability: String,
},
Guide,
Completions {
shell: Shell,
},
Man,
Services {
action: ServicesAction,
},
Packages {
action: PackagesAction,
},
Network {
action: NetworkAction,
},
Firewall {
action: FirewallAction,
},
Mcp {
expanded_tools: bool,
},
}Expand description
The top-level subcommands fez accepts.
Variants§
Capabilities
List capability ids for on-demand discovery.
Describe
Describe one capability (inputs, output kind, flags, examples).
Guide
Print the agent contract: discovery loop, envelope, exit codes, env vars.
Completions
Generate a shell completion script on stdout.
Man
Emit the roff man page on stdout (used by packaging).
Services
Manage systemd services.
Fields
§
action: ServicesActionThe services action to perform.
Packages
Manage RPM packages (via dnf5daemon).
Fields
§
action: PackagesActionThe packages action to perform.
Network
Inspect NetworkManager devices and connections.
Fields
§
action: NetworkActionThe network action to perform.
Firewall
Manage the firewall (via firewalld).
Fields
§
action: FirewallActionThe firewall action to perform.
Mcp
Run as an MCP server (JSON-RPC 2.0 over stdio): a frugal gateway exposing list_capabilities, describe_capability, and invoke meta-tools.
Trait Implementations§
Source§impl Debug for TopCommand
impl Debug for TopCommand
Source§impl FromArgMatches for TopCommand
impl FromArgMatches for TopCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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>
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 TopCommand
impl Subcommand for TopCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TopCommand
impl RefUnwindSafe for TopCommand
impl Send for TopCommand
impl Sync for TopCommand
impl Unpin for TopCommand
impl UnsafeUnpin for TopCommand
impl UnwindSafe for TopCommand
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