- Either mimic the GH CLI package functionalities
- Detect the other GH packages in system and override IFF required
Repro
Suppose a linux system has both GH's official package and this GH pypi package, then in project folder, GH official tool stops working.
- Install gh from brew or any other tool.
- Install gh using
pip install gh
gh pr checkout <pr_no> -> says pr is not recognized.
GH official CLI is a part of many repo's CI/CD systems which gets broken
Expected behavior:
Either of the below:
- Give an option for what this tool overrides (if official package is also present, atleast let the users choose adding one time effort for user)
- Don't override all options always, allow users to configure which options they want to override.
Workaround
Migrate gh scripts to something like /usr/bin/gh or /bin/gh to continue to use official cli behavior.