如何在终端上使用 Go Jira(客户端)登录

How to login with Go Jira (Client) on terminal

我正在尝试使用终端登录 Go Jira(客户端)

命令

jira login

它要求我输入密码,在字段中提供个人访问权限 token/password 会引发错误。

ERROR Post "rest/auth/1/session": unsupported protocol scheme ""

我有 SSO 登录。另外,我还没有在 jira.d 文件夹中创建 config.yml 文件。

Github Link - https://github.com/go-jira/jira

似乎库要求设置端点:

You will need to specify your local jira endpoint first, typically in your homedir like:

mkdir ~/.jira.d

cat <<EOM >~/.jira.d/config.yml
endpoint: https://jira.mycompany.com
EOM

P.S。 为了让它更与 Go 相关,here is the line that forms the URL:

uri := URLJoin(endpoint, "rest/auth/1/session")

这意味着端点未设置。而且它没有默认值。