enum CommandWord {
Show 13 variants
Current,
Resolve,
Status,
Link,
Unlink,
Create,
Delete,
List,
Agents,
Profiles,
Repositories,
Doctor,
Completions,
}Expand description
The repository commands (SP3 design §7.1).
Variants§
Current
Resolve
Status
Link
Unlink
Create
Delete
List
Agents
Profiles
Repositories
Doctor
Completions
Implementations§
Source§impl CommandWord
impl CommandWord
const ALL: [CommandWord; 13]
Sourcefn parse(word: &str) -> Option<CommandWord>
fn parse(word: &str) -> Option<CommandWord>
The exact lower-case spelling only.
fn as_str(self) -> &'static str
fn scope(self) -> AgentScope
fn accepts_repo(self) -> bool
fn accepts_json(self) -> bool
fn accepts_yes(self) -> bool
fn positional(self, with_agent: bool) -> Positional
Trait Implementations§
Source§impl Clone for CommandWord
impl Clone for CommandWord
Source§fn clone(&self) -> CommandWord
fn clone(&self) -> CommandWord
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 moreimpl Copy for CommandWord
Source§impl Debug for CommandWord
impl Debug for CommandWord
impl Eq for CommandWord
Source§impl PartialEq for CommandWord
impl PartialEq for CommandWord
impl StructuralPartialEq for CommandWord
Auto Trait Implementations§
impl Freeze for CommandWord
impl RefUnwindSafe for CommandWord
impl Send for CommandWord
impl Sync for CommandWord
impl Unpin for CommandWord
impl UnsafeUnpin for CommandWord
impl UnwindSafe for CommandWord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.