pub struct PluginMarketplaceAddCommand { /* private fields */ }Expand description
Add a local or Git marketplace source
(codex plugin marketplace add <SOURCE>).
Implementations§
Source§impl PluginMarketplaceAddCommand
impl PluginMarketplaceAddCommand
Sourcepub fn new(source: impl Into<String>) -> Self
pub fn new(source: impl Into<String>) -> Self
Create a marketplace-add command for a source (local path,
owner/repo[@ref], HTTPS Git URL, or SSH Git URL).
Sourcepub fn git_ref(self, git_ref: impl Into<String>) -> Self
pub fn git_ref(self, git_ref: impl Into<String>) -> Self
Git ref to fetch for Git marketplace sources (--ref).
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 PluginMarketplaceAddCommand
impl Clone for PluginMarketplaceAddCommand
Source§fn clone(&self) -> PluginMarketplaceAddCommand
fn clone(&self) -> PluginMarketplaceAddCommand
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 PluginMarketplaceAddCommand
impl CodexCommand for PluginMarketplaceAddCommand
Auto Trait Implementations§
impl Freeze for PluginMarketplaceAddCommand
impl RefUnwindSafe for PluginMarketplaceAddCommand
impl Send for PluginMarketplaceAddCommand
impl Sync for PluginMarketplaceAddCommand
impl Unpin for PluginMarketplaceAddCommand
impl UnsafeUnpin for PluginMarketplaceAddCommand
impl UnwindSafe for PluginMarketplaceAddCommand
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