Skip to content

fgazat/trc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex Tracker CLI

Installation

Using Go command:

go install github.com/fgazat/trc@latest

Or download binary for your OS from Releases.

Configuration

For authorization you have to get Yandex Tracker OAuth token and X-Org-ID or X-Cloud-Org-ID. For more information, check out the Yandex Cloud documentation: API access .

These secrets should be specified in environment variables: TRACKER_TOKEN, X_CLOUD_ORG_ID, X_ORG_ID.

export TRACKER_TOKEN="YOUR_OAUTH_TOKEN"
export X_CLOUD_ORG_ID="YOUR_CLOUD_ORG_ID"
export X_ORG_ID="YOUR_ORG_ID"

Also you can specify your config file. By default, it tries to find the config file here: $HOME/.trc/config.yaml:

api_base_url: https://api.tracker.yandex.net
web_base_url: https://tracker.yandex.com
debug: false
issues:
  default_queue: MYQUEUE
  assignee: fgazat

You can set your own config filepath with TRC_CFG_PATH env var:

Example of config: ./config/configexample.yaml

export TRC_CFG_PATH="/my/custom/path"

Usage

# create issue
trc create --summary "Summary" --desc "Description" --queue "TEST"
# create issue (short, if queue specifed in config) 
trc c -s "Summary" -d "Description"
# list issues
trc l
# list issues of the first filter, select issue and open it in default browser.
trc l -n 1 -o

Contribution

Feel free to fork the repo and make PR