get_config_from_user_git

Function get_config_from_user_git 

Source
pub fn get_config_from_user_git(key: &str) -> Option<String>
Expand description

Gets a value from the users local git configuration, see example

§Arguments

  • key - the config key to look for -> e.g core.editor

§Returns

  • Some(String) with the value if the key is found
  • None on key retrieval failure

§Example

use oseda_cli::github::get_config_from_user_git;

let name = get_config_from_user_git("user.name");