Skip to main content

set_default

Function set_default 

Source
pub fn set_default(path: &Path, name: &str) -> Result<String, StoreError>
Expand description

Point default_profile at an existing profile.

Separate from upsert because changing which organisation a bare command touches is its own decision, not a side effect of writing a profile — and because it must not require a token: switching profiles is a local edit, and asking the keychain for a credential to make one would be theatre.