8000 GitHub - kesompochy/gh-otui: GitHub extension that allows interactive selection of repositories in the organization you belong to and clones them using ghq
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from n3xem/gh-otui

GitHub extension that allows interactive selection of repositories in the organization you belong to and clones them using ghq

Notifications You must be signed in to change notification settings

kesompochy/gh-otui

 
 

Repository files navigation

gh-otui

English | 简体中文 | Español | Français | Deutsch | 한국어

/oˈtuː.i/ と読みます。

gh-otui = gh + org + tui

otui (GIFで表示されているリポジトリはすべて自分が所属している組織のパブリックのものです)

gh-otuiはghとghq、fuzzy finder (peco, fzf)を組み合わせたCLIツールです。
Organizationのリポジトリをfuzzy finderの仕組みを使って横断して検索・閲覧し、ghqでクローンすることができます。特に複数のリポジトリを横断して開発している場合、リポジトリ名さえ知っていればCLIのみでクローンを完結できるので便利です.

機能

  • GitHubの組織リポジトリの一覧表示
  • fuzzy finderを使用した対話的なリポジトリ選択
  • 選択したリポジトリのghqによるクローン(未クローンの場合)
  • クローン済みリポジトリの視覚的な表示(✓マーク)

前提ツール

  • GitHub CLI (gh)
  • ghq
  • peco
    • または fzf。環境変数 GH_OTUI_SELECTORfzf に設定することでfzfを使用できます。環境変数の指定がない場合は、pecoとfzfのインストールされている方を使います。両方インストールされている場合はpecoが優先されます。

インストール

gh extension install n3xem/gh-otui

使い方

  1. 所属しているorganizationのリポジトリのキャッシュを作成します:
gh otui --cache

キャッシュは ~/.config/gh/extensions/gh-otui/cache.json に保存されます。

  1. 以下のコマンドを実行します:
gh otui
  1. fuzzy finderインターフェースで目的のリポジトリを選択します

    • ✓マークは既にクローン済みのリポジトリを示します
    • 未クローンのリポジトリを選択するとghqによるクローンが行われます
    • クローン済みの判定は ghq root のパスを確認して行われます
  2. 選択したリポジトリのローカルパスが標準出力されます。

    • cdコマンドと連携して使用するとすぐ移動できて便利です。
    • 例: cd $(gh otui)

出力形式

リポジトリは以下の形式で表示されます:

  • ✓: クローン済みリポジトリを示すマーク
  • organization-name: GitHubの組織名
  • repository-name: リポジトリ名

About

GitHub extension that allows interactive selection of repositories in the organization you belong to and clones them using ghq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.4%
  • Makefile 0.6%
0