I wrote a Github CLI extension to fuzzy find repos and run actions on them
Play this article
Table of contents
I went ahead and created a Github CLI extension which fuzzy finds repos and you can choose an action you want to run on it.
Requirements
gh cli
- minimum version (2.0.0)fzf
Installation
Via the Github CLI
gh extension install kavinvalli/gh-repo-fzf
Manually
You can also install it manually by following these steps:
Clone repo
# git git clone https://github.com/kavinvalli/gh-repo-fzf # github cli gh repo clone kavinvalli/gh-fzf
cd into it
cd gh-repo-fzf
Install it locally
gh extension install .
Usage
- To list all directories you have access to, run:
gh repo-fzf
- To list directories of a particular user / organisation:
gh repo-fzf <username/organisation-name>
After choosing a directory, you will be prompted to choose one of the following:
Clone
- clones a repository to your local machineView
- opens the Github URL of the repositoryFork
- forks the repositoryArchive
- archives the repository
Feel free to put up any issue you face on the Github Repository. Contributions are also welcome.
Don't forget to star the repo ๐
ย