Categorygithub.com/bharath-srinivas/giterm
repository
0.0.0-20230725175750-690d97504962
Repository: https://github.com/bharath-srinivas/giterm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Giterm

Build Status Go Report Card

A terminal client for Github :sunglasses:

Installation

Installing from source

If you want to build the application yourself, do the following from within your $GOPATH:

$ go get -u github.com/bharath-srinivas/giterm
$ cd $GOPATH/src/github.com/bharath-srinivas/giterm
$ go install ./cmd/giterm

Setup

Giterm requires github personal access token to work. For more information on how to create a personal access token, you can refer to the official documentation here.

When running giterm for the first time, you have to set your personal access token before using the application.

  1. Create you personal access token by clicking here. Refer to the Required scopes section when creating the token
  2. Copy your personal access token and keep it ready
  3. Now set the token by executing the following command:
$ giterm --token [your_personal_access_token]

This will create a new config file at ~/.giterm/config.json.

Required scopes

Giterm requires the following scopes to be selected when creating a personal access token for it to function properly.

ScopeDescription
repoFull control of private repositories
read:packagesDownload packages from github package registry
read:orgRead org and team membership, read org projects
notificationsAccess notifications
userUpdate all user data
read:discussionRead team discussions

Feeds (optional)

If you wish to view your github news feeds along with other data, you have to set your private github news feed URL.

To get your private github news feed URL, execute the following command:

$ curl -u "username" https://api.github.com/feeds | grep -oP '(?<="current_user_url": ")[^"]*'

Running the above command will ask you to enter your github password. After getting the URL, you can set it using the following command:

$ giterm --feeds-url [your_github_feed_url]

Usage

Once everything is setup properly, you can run the application with the following command:

$ giterm

Default key mappings

KeyAction
Ctrl-nNext page
Ctrl-pPrevious page
TabNext widget
Shift-TabPrevious widget
Ctrl-rRefresh page
LeftScroll left
RightScroll right
Up/Page upScroll up
Down/Page downScroll down
HomeScroll to top
EndScroll to bottom
EnterConfirm
Ctrl-qQuit