Skip to content

Commit fa01ff5

Browse files
author
dvogt23
committed
add pass path to config
1 parent b98da36 commit fa01ff5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jiracli/cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type GlobalOptions struct {
3434
Login figtree.StringOption `yaml:"login,omitempty" json:"login,omitempty"`
3535
PasswordSource figtree.StringOption `yaml:"password-source,omitempty" json:"password-source,omitempty"`
3636
PasswordDirectory figtree.StringOption `yaml:"password-directory,omitempty" json:"password-directory,omitempty"`
37+
PasswordPath figtree.StringOption `yaml:"password-path,omitempty" json:"password-path,omitempty"`
3738
Quiet figtree.BoolOption `yaml:"quiet,omitempty" json:"quiet,omitempty"`
3839
SocksProxy figtree.StringOption `yaml:"socksproxy,omitempty" json:"socksproxy,omitempty"`
3940
UnixProxy figtree.StringOption `yaml:"unixproxy,omitempty" json:"unixproxy,omitempty"`

jiracli/password.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func (o *GlobalOptions) keyName() string {
2525
}
2626

2727
if o.PasswordSource.Value == "pass" {
28+
if o.PasswordPath.Value != "" {
29+
return fmt.Sprintf("%s/%s", o.PasswordPath, user)
30+
}
2831
return fmt.Sprintf("GoJira/%s", user)
2932
}
3033
return user

0 commit comments

Comments
 (0)