mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
refactor to allow for --insecure and --unixproxy arguments
This commit is contained in:
@@ -16,7 +16,7 @@ type IssueTypesOptions struct {
|
||||
Project string `yaml:"project,omitempty" json:"project,omitempty"`
|
||||
}
|
||||
|
||||
func CmdIssueTypesRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
|
||||
func CmdIssueTypesRegistry() *jiracli.CommandRegistryEntry {
|
||||
opts := IssueTypesOptions{
|
||||
CommonOptions: jiracli.CommonOptions{
|
||||
Template: figtree.NewStringOption("issuetypes"),
|
||||
@@ -29,7 +29,7 @@ func CmdIssueTypesRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
|
||||
jiracli.LoadConfigs(cmd, fig, &opts)
|
||||
return CmdIssueTypesUsage(cmd, &opts)
|
||||
},
|
||||
func(globals *jiracli.GlobalOptions) error {
|
||||
func(o *oreo.Client, globals *jiracli.GlobalOptions) error {
|
||||
return CmdIssueTypes(o, globals, &opts)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user