File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ type GlobalOptions struct {
34
34
Login figtree.StringOption `yaml:"login,omitempty" json:"login,omitempty"`
35
35
PasswordSource figtree.StringOption `yaml:"password-source,omitempty" json:"password-source,omitempty"`
36
36
PasswordDirectory figtree.StringOption `yaml:"password-directory,omitempty" json:"password-directory,omitempty"`
37
+ PasswordPath figtree.StringOption `yaml:"password-path,omitempty" json:"password-path,omitempty"`
37
38
Quiet figtree.BoolOption `yaml:"quiet,omitempty" json:"quiet,omitempty"`
38
39
SocksProxy figtree.StringOption `yaml:"socksproxy,omitempty" json:"socksproxy,omitempty"`
39
40
UnixProxy figtree.StringOption `yaml:"unixproxy,omitempty" json:"unixproxy,omitempty"`
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ func (o *GlobalOptions) keyName() string {
25
25
}
26
26
27
27
if o .PasswordSource .Value == "pass" {
28
+ if o .PasswordPath .Value != "" {
29
+ return fmt .Sprintf ("%s/%s" , o .PasswordPath , user )
30
+ }
28
31
return fmt .Sprintf ("GoJira/%s" , user )
29
32
}
30
33
return user
You can’t perform that action at this time.
0 commit comments