Expand description
In-memory CLI state for a single invocation, plus the on-disk locations itβs seeded from.
Re-exportsΒ§
use std::path::PathBuf;πuse std::sync::Arc;πuse std::sync::LazyLock;πuse haste_server::auth_n::oidc::routes::discovery::WellKnownDiscoveryDocument;πuse tokio::sync::Mutex;πuse crate::cli::config::CliConfiguration;πuse crate::cli::secrets::CliSecrets;π
StructsΒ§
- CliState π
StaticsΒ§
- CLI_
STATE π - Lazily loads
CONFIG_LOCATION/SECRETS_LOCATIONfrom disk on first access. - CONFIG_
DIR π - Directory holding the CLIβs config and secrets files (
~/.haste_health). - CONFIG_
LOCATION π - Non-secret profile config (server URLs, auth mode). Safe to inspect or back up.
- SECRETS_
LOCATION π - Client secrets and cached OAuth tokens, kept out of
CONFIG_LOCATIONso they never show up viaprofile showor similar.