diff options
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 } |