pub fn init_github_cli(repo: String, fake: bool) -> Box<dyn GitHub>
Expand description
Get the GitHub CLI and initialize it with a default repository
If fake
is true, a fake GitHub CLI is returned.
The fake GitHub CLI is used for testing and does not interact with GitHub
§Arguments
repo
- The default repository to usefake
- If true, a fake GitHub CLI is returned
§Returns
Box<dyn GitHub>
- The GitHub CLI interface
§Example
let github_cli = init_github_cli("https://example.com/repo".to_string(), false);