Skip to main content

CliOverrides

Struct CliOverrides 

Source
pub struct CliOverrides {
Show 35 fields pub policy: Option<PublishPolicy>, pub verify_mode: Option<VerifyMode>, pub max_attempts: Option<u32>, pub base_delay: Option<Duration>, pub max_delay: Option<Duration>, pub retry_strategy: Option<RetryStrategyType>, pub retry_jitter: Option<f64>, pub verify_timeout: Option<Duration>, pub verify_poll_interval: Option<Duration>, pub output_lines: Option<usize>, pub lock_timeout: Option<Duration>, pub state_dir: Option<PathBuf>, pub readiness_method: Option<ReadinessMethod>, pub readiness_timeout: Option<Duration>, pub readiness_poll: Option<Duration>, pub allow_dirty: bool, pub skip_ownership_check: bool, pub strict_ownership: bool, pub no_verify: bool, pub no_readiness: bool, pub force: bool, pub force_resume: bool, pub parallel_enabled: bool, pub max_concurrent: Option<usize>, pub per_package_timeout: Option<Duration>, pub webhook_url: Option<String>, pub webhook_secret: Option<String>, pub encrypt: bool, pub encrypt_passphrase: Option<String>, pub registries: Option<Vec<String>>, pub all_registries: bool, pub resume_from: Option<String>, pub rehearsal_registry: Option<String>, pub skip_rehearsal: bool, pub rehearsal_smoke_install: Option<String>,
}
Expand description

CLI flag overrides for merging with config file values.

Each Option field represents a flag the user may or may not have passed. None means “use the config-file / default value”. Boolean flags use OR semantics: true if either CLI or config enables it.

Passed to ShipperConfig::build_runtime_options to produce the final RuntimeOptions.

Fields§

§policy: Option<PublishPolicy>§verify_mode: Option<VerifyMode>§max_attempts: Option<u32>§base_delay: Option<Duration>§max_delay: Option<Duration>§retry_strategy: Option<RetryStrategyType>§retry_jitter: Option<f64>§verify_timeout: Option<Duration>§verify_poll_interval: Option<Duration>§output_lines: Option<usize>§lock_timeout: Option<Duration>§state_dir: Option<PathBuf>§readiness_method: Option<ReadinessMethod>§readiness_timeout: Option<Duration>§readiness_poll: Option<Duration>§allow_dirty: bool§skip_ownership_check: bool§strict_ownership: bool§no_verify: bool§no_readiness: bool§force: bool§force_resume: bool§parallel_enabled: bool§max_concurrent: Option<usize>§per_package_timeout: Option<Duration>§webhook_url: Option<String>§webhook_secret: Option<String>§encrypt: bool§encrypt_passphrase: Option<String>§registries: Option<Vec<String>>

Target registries for multi-registry publishing (comma-separated list)

§all_registries: bool

Publish to all configured registries

§resume_from: Option<String>

Optional package name to resume from

§rehearsal_registry: Option<String>

Rehearsal registry override — CLI flag --rehearsal-registry <name>. Sets RehearsalConfig::registry and implicitly enables rehearsal. Consumed in a follow-on PR under #97; this field is parsed now so the CLI/config surface is stable.

§skip_rehearsal: bool

Skip rehearsal even if config/env enables it — CLI flag --skip-rehearsal. Consumed in the same follow-on PR.

§rehearsal_smoke_install: Option<String>

Crate name to smoke-install post-rehearsal (#97 PR 4) — CLI flag --smoke-install <CRATE>. None means no smoke install.

Trait Implementations§

Source§

impl Debug for CliOverrides

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for CliOverrides

Source§

fn default() -> CliOverrides

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more