pub enum RigCommand {
Up {
timeout: u64,
},
Down,
Reset {
timeout: u64,
},
Status,
Logs {
tail: u32,
follow: bool,
service: Option<String>,
},
Trial(TrialArgs),
Snapshot {
output: Option<PathBuf>,
},
Restore {
file: PathBuf,
timeout: u64,
},
}Variants§
Up
Bring the rig up (compose up -d –wait) and wait for the gateway: RUNNING, or uncommissioned-as-data (exit 0 + wizard hint in warnings)
Fields
Down
Stop the rig (compose down –remove-orphans; volumes KEPT —
reset owns the teardown half)
Reset
Tear the rig down AND remove its volumes (down -v –remove-orphans), then bring it back up fresh — destructive, refused without –yes; no stale project/trial state survives
Fields
Status
Structured status: services, ports, volumes (allowlist JSON; a down rig is exit-0 data)
Logs
Stream the rig’s container logs (compose logs passthrough — raw lines, no envelope in any mode; the third streaming exception, README-documented)
Fields
Trial(TrialArgs)
Trial-license state: status is credential-free truth; reset (guarded) restarts an EXPIRED trial via the mechanism ladder (token-auth POST, else native gateway login)
Snapshot
Snapshot the rig’s gateway: native gwbk (roaming backup, streamed) + per-project exports + manifest.json, composed in a timestamped directory — repeatable state
Restore
Restore a gwbk onto the rig’s gateway — destructive, refused without –yes; synchronous restore + restart, then a witnessed RUNNING wait
Trait Implementations§
Source§impl Debug for RigCommand
impl Debug for RigCommand
Source§impl FromArgMatches for RigCommand
impl FromArgMatches for RigCommand
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>
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>
ArgMatches to self.Source§impl Subcommand for RigCommand
impl Subcommand for RigCommand
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
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
Self can parse a specific subcommand