pub struct PluginMarketplaceUpgradeCommand { /* private fields */ }Expand description
Refresh configured Git marketplace snapshots
(codex plugin marketplace upgrade [MARKETPLACE_NAME]).
Omit the name to upgrade all configured Git marketplaces.
Implementations§
Source§impl PluginMarketplaceUpgradeCommand
impl PluginMarketplaceUpgradeCommand
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a marketplace upgrade command (upgrades all Git marketplaces
unless name is set).
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Upgrade only this configured marketplace name.
Sourcepub fn config(self, key_value: impl Into<String>) -> Self
pub fn config(self, key_value: impl Into<String>) -> Self
Override a config key (-c key=value). May be called multiple times.
Sourcepub fn enable(self, feature: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
Enable an optional feature flag (--enable <feature>).
Sourcepub fn disable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
Disable an optional feature flag (--disable <feature>).
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
Override the retry policy for this command.
Trait Implementations§
Source§impl Clone for PluginMarketplaceUpgradeCommand
impl Clone for PluginMarketplaceUpgradeCommand
Source§fn clone(&self) -> PluginMarketplaceUpgradeCommand
fn clone(&self) -> PluginMarketplaceUpgradeCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CodexCommand for PluginMarketplaceUpgradeCommand
impl CodexCommand for PluginMarketplaceUpgradeCommand
Auto Trait Implementations§
impl Freeze for PluginMarketplaceUpgradeCommand
impl RefUnwindSafe for PluginMarketplaceUpgradeCommand
impl Send for PluginMarketplaceUpgradeCommand
impl Sync for PluginMarketplaceUpgradeCommand
impl Unpin for PluginMarketplaceUpgradeCommand
impl UnsafeUnpin for PluginMarketplaceUpgradeCommand
impl UnwindSafe for PluginMarketplaceUpgradeCommand
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