pub enum Commands {
Enable {
frameworks: Vec<String>,
local: bool,
settings_local: bool,
print: bool,
db_only: bool,
hooks_only: bool,
otel: bool,
otel_port: u16,
no_otel: bool,
},
Disable {
frameworks: Vec<String>,
local: bool,
settings_local: bool,
print: bool,
},
Ingest(IngestCommands),
Session {
session_or_pid: String,
machine: Option<String>,
json: bool,
fields: Option<Vec<String>>,
},
Status {
json: bool,
verbose: bool,
check: bool,
},
Tui(TuiArgs),
Watch {
session: Option<String>,
event_type: Option<String>,
mode: Option<String>,
framework: Option<String>,
poll_ms: u64,
},
Cleanup {
dry_run: bool,
},
Otel(OtelCommands),
Upgrade {
version: Option<String>,
yes: bool,
dry_run: bool,
method: Option<UpgradeMethod>,
source_path: Option<PathBuf>,
},
Uninstall {
yes: bool,
keep_data: bool,
dry_run: bool,
},
}Variants§
Enable
Enable mi6 for agent framework(s)
Fields
Disable
Disable mi6 for agent framework(s)
Fields
Ingest(IngestCommands)
Ingest data into mi6
Session
Show session details
Fields
Status
Show mi6 status
Fields
Tui(TuiArgs)
Launch interactive TUI
Watch
Display event stream
Fields
Cleanup
Run cleanup to remove old data
Otel(OtelCommands)
Manage the OpenTelemetry server
Upgrade
Upgrade mi6 to the latest version
Fields
§
method: Option<UpgradeMethod>Installation method to use (defaults to current method)
Uninstall
Uninstall mi6 from the system
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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