pub enum ConfigAction {
AddKey {
provider: String,
from_stdin: bool,
json: bool,
},
ListKeys {
json: bool,
},
RemoveKey {
fingerprint: String,
json: bool,
},
Doctor {
json: bool,
},
Path {
json: bool,
},
Set {
key: String,
value: String,
json: bool,
},
Get {
key: String,
json: bool,
},
List {
effective: bool,
json: bool,
},
Unset {
key: String,
json: bool,
},
}Variants§
AddKey
Add an API key for a provider (reads from stdin to avoid shell history).
Fields
ListKeys
List stored API keys (masked) with fingerprints.
RemoveKey
Remove an API key by its fingerprint.
Doctor
Diagnose key resolution layers (flag/cli and XDG config; product env deprecated).
Path
Print the resolved XDG config file path.
Set
Set an operational setting in XDG config (G-T-XDG-01).
Known keys (non-exhaustive):
enrich.preserve_threshold, enrich.entity_description.domain,
enrich.entity_description.grounding_threshold,
enrich.entity_connect.default_limit,
enrich.entity_connect.max_runtime_secs,
network.openrouter.chat_url (alias network.chat_url),
network.openrouter.embeddings_url (alias network.embed_url),
log.level, log.format, display.tz,
embedding.dim, llm.concurrency.
Fields
Get
Get an operational setting from XDG config.
List
List all operational settings (no secrets).
Unset
Unset an operational setting.
Trait Implementations§
Source§impl Debug for ConfigAction
impl Debug for ConfigAction
Source§impl FromArgMatches for ConfigAction
impl FromArgMatches for ConfigAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ConfigAction
impl Subcommand for ConfigAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ConfigAction
impl RefUnwindSafe for ConfigAction
impl Send for ConfigAction
impl Sync for ConfigAction
impl Unpin for ConfigAction
impl UnsafeUnpin for ConfigAction
impl UnwindSafe for ConfigAction
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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