pub enum InitMode {
Format(InitFormat),
Pi {
global: bool,
},
ClaudeCode {
global: bool,
},
}Expand description
Resolved mode for oo init: the legacy --format value or the new
--agent target (issue #171).
Variants§
Format(InitFormat)
--format claude/generic (or plain oo init) — behaviour unchanged.
Pi
--agent pi [--global] — install the pi extension.
ClaudeCode
--agent claude-code [--global] — install the Claude Code hook (issue #172).
Trait Implementations§
impl Eq for InitMode
impl StructuralPartialEq for InitMode
Auto Trait Implementations§
impl Freeze for InitMode
impl RefUnwindSafe for InitMode
impl Send for InitMode
impl Sync for InitMode
impl Unpin for InitMode
impl UnsafeUnpin for InitMode
impl UnwindSafe for InitMode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.