pub struct PluginRemoveCommand { /* private fields */ }Expand description
Remove an installed plugin from local config and cache
(codex plugin remove <PLUGIN[@MARKETPLACE]>).
Implementations§
Source§impl PluginRemoveCommand
impl PluginRemoveCommand
Sourcepub fn new(selector: impl Into<String>) -> Self
pub fn new(selector: impl Into<String>) -> Self
Create a remove command for a plugin selector (PLUGIN or
PLUGIN@MARKETPLACE).
Sourcepub fn marketplace(self, name: impl Into<String>) -> Self
pub fn marketplace(self, name: impl Into<String>) -> Self
Marketplace name to use when the selector omits @MARKETPLACE (-m).
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 PluginRemoveCommand
impl Clone for PluginRemoveCommand
Source§fn clone(&self) -> PluginRemoveCommand
fn clone(&self) -> PluginRemoveCommand
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 PluginRemoveCommand
impl CodexCommand for PluginRemoveCommand
Auto Trait Implementations§
impl Freeze for PluginRemoveCommand
impl RefUnwindSafe for PluginRemoveCommand
impl Send for PluginRemoveCommand
impl Sync for PluginRemoveCommand
impl Unpin for PluginRemoveCommand
impl UnsafeUnpin for PluginRemoveCommand
impl UnwindSafe for PluginRemoveCommand
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