pub enum RigCommand {
Up {
timeout: u64,
with_module: Vec<String>,
refresh: bool,
accept_upstream_change: bool,
},
Down,
Reset {
timeout: u64,
with_module: Vec<String>,
refresh: bool,
accept_upstream_change: bool,
},
Status,
Logs {
tail: u32,
follow: bool,
service: Option<String>,
},
Trial(TrialArgs),
Module(ModuleArgs),
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
timeout: u64Wait budget in seconds — BOTH compose’s –wait-timeout and the commissioned probe deadline (default 300)
with_module: Vec<String>Provision a third-party module for THIS invocation only
(repeatable): ID@VERSION, e.g. git@2.3.4. ADDITIVE to
any [rigs.NAME.modules.*] declared in config — a flag
naming an id config already declares OVERRIDES that id’s
version for this run; there is NO subtractive form (a
config-declared module cannot be omitted via this flag —
remove it from config instead)
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
timeout: u64Wait budget in seconds — BOTH compose’s –wait-timeout and the commissioned probe deadline (default 300)
with_module: Vec<String>Provision a third-party module for THIS invocation only
(repeatable): ID@VERSION, e.g. git@2.3.4. Same
additive/flag-wins/no-subtractive-form contract as rig up --with-module (reset runs the same up-half internally)
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)
Module(ModuleArgs)
Third-party module lifecycle beyond declaration: uninstall
removes a module from the gateway entirely — guarded, and NOT
undone by re-declaring it (Phase 19)
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