tosa

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 16 Imported by: 0

README

TOSA

GitHub release Travis Go Documentation MIT License

TOSA is Open Source Available.

Open pull request page or get pull request data from sha(commit hash). You can more easily find why the code is included by the page🔎

tosa1

If you want to run on VS Code? You can get VS Code extension from Marketplace.

Usage

$ tosa <sha>
Options
-u, --url      Print the pull request url.

-a, --apiurl   Print the issue API url.

-n, --newline  If -u(--url) or -a(--apiurl) option is specified, print
               the url with newline character at last.

-d, --debug    Enable debug mode.
               Print debug log.

-h, --help     Show this help message and exit.

-v, --version  Print current version.

NOTE: Set Github Access Token which has "Full control of private repositories" scope as an environment variable GITHUB_TOKEN. If not set, tosa requires your Github username and password(and two-factor auth code if you are setting). Because of using GitHub API v3.

from tig

Add the following key bindings in $HOME/.tigrc.

bind main O @tosa %(commit)
bind blame O @tosa %(commit)

Open page by O(Shift+o) in main or blame view.

tig_tosa

API URL

Get GitHub issue API url.

$ tosa -a <sha>

Get title of pull request via jq, for example.

$ curl -s `tosa -a c97e6909` | jq -r '.title'
Add short command option and usage

For more information, see Issues | GitHub Developer Guide.

Install

Homebrew

If you have already installed Homebrew; then can install by brew command.

$ brew tap kyoshidajp/tosa
$ brew install tosa
go get

If you are a Golang developper/user; then execute go get.

$ go get -u github.com/kyoshidajp/tosa
Manual
  1. Download binary which meets your system from Releases.
  2. Unarchive it.
  3. Put tosa where you want.
  4. Add tosa path to $PATH.

Author

Katsuhiko YOSHIDA

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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