pub fn get_export_gist_token(gist_config: &GistConfig) -> Result<String>Expand description
Retrieves a GitHub personal access token for gist, checking configuration and environment variables.
This function attempts to find a token by searching in the following locations, in order of precedence:
- The
GIST_TOKENenvironment variable - The
tokenfield of the providedgist_configobject
If a token is not found in any of these locations, the function will return an error.