Skip to main content

CLI tool for searching github organization repositories using fzf

Project description

gituhubu

CLI tool for speeding up searching repositories in your organization.

It fetches your organization repository list and store it in local cache file, then utilize fuzzy search finder through iterfzf to speed up finding specific repository you'll need to clone, preview, or check it's changelog.

Installation

pip3 install gituhubu

Configuration

At first launch gituhubu will ask you to create a file config.json in specific location for your OS.

Example configuration:

{
  "organization": "ORGANIZATION_NAME",
  "token": "API_TOKEN"
}

You can also use environment variables as a alternative:

GITHUB_ORGANIZATION=ORGANIZATION_NAME
GITHUB_TOKEN=API_TOKEN

Where ORGANIZATION_NAME is a github organization you want to search and API_TOKEN is a github personal access token with minimum scope of repos.

More details about creating such token you can find in github docs.

Usage

CLI mode

gituhubu

to invoke search list. Type any part of repository name you'll searching for and hit enter to select it.

After selection you will get a short details about repo and possible actions:

Repository Name - last update: 2020-09-25T07:51:48Z #TODO fix that date 
Actions: 
- (o)pen in browser
- (c)lone
- view c(h)angelog
  • o - will open given repository in your default browser
  • c - will clone through ssh given repository to current working directory
  • h - will try to open /CHANGELOG.md repository file in your default browser

Rofi mode

For those using rofi as application launcher, you can use gituhubu as a custom mode.

rofi -modi gituhubu:"gituhubu --rofi" -show gituhubu

Selecting given repository in rofi mode opens it in your default browser.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gituhubu-0.2.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

gituhubu-0.2.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page