pub struct Cli {Show 13 fields
pub repo_config: Option<PathBuf>,
pub credential_config: Option<PathBuf>,
pub local_credential: bool,
pub repo_config_yarn: Option<PathBuf>,
pub credential_config_yarn: Option<PathBuf>,
pub repo_config_bun: Option<PathBuf>,
pub yarn: Option<bool>,
pub bun: Option<bool>,
pub bun_env: bool,
pub token: Option<String>,
pub allow_all_domains: bool,
pub verbose: bool,
pub print_token: bool,
}Expand description
Command-line arguments for the node-auth CLI.
Fields§
§repo_config: Option<PathBuf>Path to the .npmrc file to read registry configs from. Defaults to project-level .npmrc if present, otherwise user-level ~/.npmrc.
credential_config: Option<PathBuf>Path to the .npmrc file to write credentials to. Defaults to user-level ~/.npmrc.
local_credential: boolForces writing credentials to the current directory’s .npmrc (creating it if missing). Emits a warning if running in a Git repository without .npmrc in .gitignore.
repo_config_yarn: Option<PathBuf>Path to the .yarnrc.yml file to read registry configs from. Defaults to project-level .yarnrc.yml if present, otherwise user-level ~/.yarnrc.yml.
credential_config_yarn: Option<PathBuf>Path to the .yarnrc.yml file to write credentials to. Defaults to user-level ~/.yarnrc.yml.
repo_config_bun: Option<PathBuf>Path to the bunfig.toml file to read registry configs from. Defaults to project-level ./bunfig.toml.
yarn: Option<bool>Explicitly enable or disable updating Yarn configuration (.yarnrc.yml). By default, Yarn is updated if .yarnrc.yml exists or is explicitly specified.
bun: Option<bool>Explicitly enable or disable reading Bun configuration (bunfig.toml). By default, Bun is enabled if ./bunfig.toml exists or is explicitly specified.
bun_env: boolStore Bun’s token in .env.local and reference NODE_AUTH_TOKEN from bunfig.toml.
token: Option<String>Explicit token to use instead of querying ADC or gcloud.
allow_all_domains: boolAllow all HTTPS registry domains to receive the auth token (not only *-npm.pkg.dev).
verbose: boolPrint verbose output during execution.
print_token: boolOnly retrieve and print the access token to stdout without modifying files.
Implementations§
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
impl Eq 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)
impl StructuralPartialEq for Cli
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.