pub enum ConfigCommand {
Show {
resolved: bool,
},
Path,
Get {
key: String,
},
Set {
key: String,
value: String,
force: bool,
},
Unset {
key: String,
force: bool,
},
}Expand description
The config command group.
Variants§
Show
config show: the driver-domain values. --resolved renders every
key with the layer that supplied it; without it the report is the file
layer alone — what the operator wrote.
Path
config path: the config file the mutating arms read and write.
Get
config get <key>: the resolved value of one declared key (or one
str_map entry), with the layer that supplied it.
Set
config set <key> <value>: write one declared key (or one str_map
entry) through the degenbot-config writer.
Fields
Unset
config unset <key>: remove one declared key’s override (or one
str_map entry) so the declared default applies again.
Implementations§
Source§impl ConfigCommand
impl ConfigCommand
Sourcepub const fn prompt_plan(&self, _ctx: &CliContext<'_>) -> PromptPlan
pub const fn prompt_plan(&self, _ctx: &CliContext<'_>) -> PromptPlan
Read arms never prompt; a mutating arm confirms unless --force
(ADR-051 D4).
Trait Implementations§
Source§impl Clone for ConfigCommand
impl Clone for ConfigCommand
Source§impl Debug for ConfigCommand
impl Debug for ConfigCommand
impl Eq for ConfigCommand
Source§impl PartialEq for ConfigCommand
impl PartialEq for ConfigCommand
impl StructuralPartialEq for ConfigCommand
Auto Trait Implementations§
impl Freeze for ConfigCommand
impl RefUnwindSafe for ConfigCommand
impl Send for ConfigCommand
impl Sync for ConfigCommand
impl Unpin for ConfigCommand
impl UnsafeUnpin for ConfigCommand
impl UnwindSafe for ConfigCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more