Expand description
profile command: manage named server connection profiles.
This module only owns the CLI surface (argument parsing, prompts, output). The persisted
schema lives in crate::cli::config; secrets in crate::cli::secrets.
Every value can be passed on the command line. Anything missing is prompted for in a terminal; outside one it falls back to its default or fails naming the option to pass, so scripts never hang on a prompt.
Re-exportsΒ§
use crate::cli::client::unix_now;πuse crate::cli::config::CliConfiguration;πuse crate::cli::config::DEFAULT_CLIENT_CREDENTIALS_SCOPE;πuse crate::cli::config::Profile;πuse crate::cli::config::ProfileAuth;πuse crate::cli::config::write_config;πuse crate::cli::secrets;πuse crate::cli::secrets::ProfileSecrets;πuse crate::cli::secrets::StoredTokens;πuse crate::cli::state::CONFIG_LOCATION;πuse crate::cli::state::CliState;πuse crate::cli::state::SECRETS_LOCATION;πuse clap::Args;πuse clap::Subcommand;πuse clap::ValueEnum;πuse dialoguer::Confirm;πuse dialoguer::Input;πuse dialoguer::Password;πuse dialoguer::Select;πuse dialoguer::theme::ColorfulTheme;πuse haste_fhir_model::r4::generated::terminology::IssueType;πuse haste_fhir_operation_error::OperationOutcomeError;πuse std::io::IsTerminal;πuse std::sync::Arc;πuse tokio::sync::Mutex;π
StructsΒ§
- Create
Args π - Prompter π
- Fills in values that werenβt passed on the command line.
EnumsΒ§
- Auth
Mode πChoice - How the CLI authenticates for a profile.
- Profile
Commands π - Manage named server connection profiles.
ConstantsΒ§
- CREATE_
HINT π - DEFAULT_
AUTHORIZATION_ πCODE_ SCOPE - DEFAULT_
REDIRECT_ πURI - USE_
HINT π
FunctionsΒ§
- build_
profile π - Builds the profile
createsaves, plus the secret (client secret or password) that goes in the secrets file rather than the profile. - create π
- delete π
- error π
- find π
- format_
duration π - ignored_
options π - Options that were passed but that
modedoesnβt use. - login_
status π - missing π
- no_
active_ πhint - pick π
- The named profile, or one picked from a list when no name was given.
- print_
list π - print_
profile π - prompt_
failed π - run π
- Runs the
profilecommand group. - secret_
status π