Skip to main content

migrate_single_env_key

Function migrate_single_env_key 

Source
pub fn migrate_single_env_key(
    workspace: &Path,
    provider: Provider,
    store_mode: AuthCredentialsStoreMode,
    value: Option<&str>,
) -> Result<MigrationOutcome>
Expand description

Migrate a single provider’s API key from workspace .env into secure storage.

Returns the outcome so callers can render progress in their own UI. The provider is skipped if it is local, uses managed auth, has no env key defined, or has no value in .env.