pub fn resolve_credentials_with(
env: &FileCascadeEnv,
) -> Result<Credentials, CredentialError>Expand description
Same cascade as resolve_credentials but with an explicit
FileCascadeEnv. Lets doctor and tests pin the file-cascade
inputs without mutating process env, which is racy under Rust’s
default parallel test execution.
macOS Keychain probes don’t depend on the file-cascade env vars
in FileCascadeEnv; they shell out to security (which reads
$USER independently to scope the lookup).