diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-09 20:08:12 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-09 20:23:38 +0100 |
commit | b3d3612393387c83fa43f908dbb8e2a71068c834 (patch) | |
tree | e4609e21dc74e535d45b38cd7d0504681c544160 /bridge/jira/config.go | |
parent | dca85b309a0a82e9993a345964d0831ab2876fb4 (diff) | |
parent | 3caffeef4d2ed25d4eb5d4bfd262f4fc3b92561f (diff) | |
download | git-bug-b3d3612393387c83fa43f908dbb8e2a71068c834.tar.gz |
Merge remote-tracking branch 'origin/master' into cheshirekow-jira
Diffstat (limited to 'bridge/jira/config.go')
-rw-r--r-- | bridge/jira/config.go | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/bridge/jira/config.go b/bridge/jira/config.go index 59076564..406bed31 100644 --- a/bridge/jira/config.go +++ b/bridge/jira/config.go @@ -8,7 +8,6 @@ import ( "os" "strconv" "strings" - "time" "github.com/pkg/errors" @@ -17,22 +16,6 @@ import ( "github.com/MichaelMure/git-bug/input" ) -const ( - target = "jira" - keyServer = "server" - keyProject = "project" - keyCredentialsType = "credentials-type" - keyCredentialsFile = "credentials-file" - keyUsername = "username" - keyPassword = "password" - keyIDMap = "bug-id-map" - keyIDRevMap = "bug-id-revmap" - keyCreateDefaults = "create-issue-defaults" - keyCreateGitBug = "create-issue-gitbug-id" - - defaultTimeout = 60 * time.Second -) - const moreConfigText = ` NOTE: There are a few optional configuration values that you can additionally set in your git configuration to influence the behavior of the bridge. Please @@ -65,9 +48,7 @@ How would you like to store your JIRA login credentials? ` // Configure sets up the bridge configuration -func (g *Jira) Configure( - repo *cache.RepoCache, params core.BridgeParams) ( - core.Configuration, error) { +func (g *Jira) Configure(repo *cache.RepoCache, params core.BridgeParams) (core.Configuration, error) { conf := make(core.Configuration) var err error var url string @@ -126,7 +107,7 @@ func (g *Jira) Configure( return nil, err } - password, err = input.PromptPassword() + password, err = input.PromptPassword("Password", "password", input.Required) if err != nil { return nil, err } |