Skip to main content

repo_of_gh_command

Function repo_of_gh_command 

Source
pub fn repo_of_gh_command(
    args: &[String],
    env_repo: Option<&str>,
    origin_url: impl FnOnce() -> Option<String>,
) -> Option<(String, String)>
Expand description

The repository gh is about to act on, from its arguments and environment, else from the working directory’s origin. None when the command names no repository (e.g. gh --version).