pub struct Cli {Show 15 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 base_prefix: 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 human view; the others are
pipeline-friendly serialized forms. If unset, falls back to the
[output] format = "…" value in ~/.config/qn/config.toml, then the
TTY-aware default: table when stdout is a terminal, json otherwise.
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.
base_prefix: Option<String>Path prefix inserted between the host and each sub-client’s path (e.g.
/console-api). For reverse-proxy / gateway environments. Requires
--base-url.
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.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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