refactor to allow for --insecure and --unixproxy arguments

This commit is contained in:
Cory Bennett
2017-09-04 17:53:01 -07:00
parent 21920c5888
commit c0358eb67c
38 changed files with 146 additions and 120 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type ListOptions struct {
jira.SearchOptions `yaml:",inline" json:",inline" figtree:",inline"`
}
func CmdListRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
func CmdListRegistry() *jiracli.CommandRegistryEntry {
opts := ListOptions{
CommonOptions: jiracli.CommonOptions{
Template: figtree.NewStringOption("list"),
@@ -35,7 +35,7 @@ func CmdListRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
}
return CmdListUsage(cmd, &opts)
},
func(globals *jiracli.GlobalOptions) error {
func(o *oreo.Client, globals *jiracli.GlobalOptions) error {
return CmdList(o, globals, &opts)
},
}