Skip to main content

read_profile_credentials

Function read_profile_credentials 

Source
pub fn read_profile_credentials(
    path: &Path,
    profile_name: &str,
) -> Option<(String, String, String)>
Expand description

Read the raw credential values for a specific profile, for use when updating.

Returns None if the config file does not exist, cannot be parsed, or does not contain the requested profile with all three credentials present.