giterm

module
v0.0.0-...-690d975 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: MIT

README

Giterm

Build Status Go Report Card

A terminal client for Github 😎

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.

Scope Description
repo Full control of private repositories
read:packages Download packages from github package registry
read:org Read org and team membership, read org projects
notifications Access notifications
user Update all user data
read:discussion Read 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

Key Action
Ctrl-n Next page
Ctrl-p Previous page
Tab Next widget
Shift-Tab Previous widget
Ctrl-r Refresh page
Left Scroll left
Right Scroll right
Up/Page up Scroll up
Down/Page down Scroll down
Home Scroll to top
End Scroll to bottom
Enter Confirm
Ctrl-q Quit

Directories

Path Synopsis
Package app implements the terminal based giterm application.
Package app implements the terminal based giterm application.
cmd
Package config implements the configurations required by the application to function properly.
Package config implements the configurations required by the application to function properly.
Package modules implements the different kinds of widgets that are used by the application.
Package modules implements the different kinds of widgets that are used by the application.
Package pages implements all the pages that are displayed in the application.
Package pages implements all the pages that are displayed in the application.
Package views implements different types of views that are used by the application.
Package views implements different types of views that are used by the application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL