pub enum BundleCommand {
Generate,
Status,
Download {
output: Option<PathBuf>,
},
Wait {
interval: u64,
timeout: u64,
},
}Expand description
The four bundle verbs (09-05). Nothing here is destructive:
generate creates a support bundle, download writes a local file,
wait polls — none carry --yes (the backup-download posture).
Variants§
Generate
Start bundle generation (POST, no body) — the 200 answer IS
the fresh status (live capture: {"state":"Generating"});
generation takes ~2–6 s on a fresh rig, so pair with wait
Status
The bundle status: state rides the CAPTURED vocabulary
(Generating / Valid — unknown future states pass through
verbatim, never refused); fileSize (bytes) appears only
when Valid
Download
Download the bundle ZIP (streamed to disk; the request rides a 300 s per-request timeout — the 30 s client default would truncate MB-sized bundles)
Fields
Wait
Poll the status until a terminal captured state (Valid)
— an UNKNOWN state (outside the captured vocabulary) keeps
polling honestly until the deadline; deadline expiry is
exit 4 network_error (the restart-wait convention, no new
slug) with the last observed state in the message
Trait Implementations§
Source§impl Debug for BundleCommand
impl Debug for BundleCommand
Source§impl FromArgMatches for BundleCommand
impl FromArgMatches for BundleCommand
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 BundleCommand
impl Subcommand for BundleCommand
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