pub struct Cli {Show 14 fields
pub api_key: Option<String>,
pub config_file: Option<PathBuf>,
pub format: Option<Format>,
pub no_color: bool,
pub quiet: bool,
pub wide: bool,
pub verbose: bool,
pub no_input: bool,
pub retries: u32,
pub yes: u8,
pub base_url: Option<String>,
pub help: Option<bool>,
pub version: Option<bool>,
pub command: Command,
}Expand description
qn — command-line interface for the Quicknode API.
Fields§
§api_key: Option<String>API key. Overrides the config file.
config_file: Option<PathBuf>Path to an alternate config file (default: ~/.config/qn/config.toml).
format: Option<Format>Output format. table is the default human view; the others are
pipeline-friendly serialized forms. If unset, falls back to the
[output] format = "…" value in ~/.config/qn/config.toml, then table.
no_color: boolDisable ANSI colors. Also honored: NO_COLOR env var, TERM=dumb, non-TTY stdout.
quiet: boolSuppress non-essential output (state-change confirmations on stderr).
wide: boolShow additional columns in list-style tables (e.g. URLs in endpoint list).
Mirrors kubectl get -o wide. Only affects table and md formats —
json/yaml/toon always include everything.
verbose: boolVerbose output: include error bodies and other details.
no_input: boolNever prompt interactively; fail with a clear message if input is needed.
retries: u32Max automatic retries for read-only commands on transient failures (HTTP 429/500/502/503/504, timeouts). Uses exponential backoff with jitter. 0 disables retries. Commands that modify resources never retry.
yes: u8Skip confirmation prompts on destructive operations.
base_url: Option<String>Override the Quicknode API base URL (used for testing or on-prem mirrors). All four sub-clients (admin/streams/webhooks/kv) hang off this host.
help: Option<bool>Print help (see a summary with ‘-h’).
version: Option<bool>Print version.
command: CommandImplementations§
Source§impl Cli
impl Cli
Sourcepub fn global_args(&self) -> GlobalArgs
pub fn global_args(&self) -> GlobalArgs
Build a GlobalArgs suitable for Ctx::from_global.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.