mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-18 20:23:28 +02:00
refactor to allow for --insecure and --unixproxy arguments
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ type RequestOptions struct {
|
||||
Data string `yaml:"data,omitempty" json:"data,omitempty"`
|
||||
}
|
||||
|
||||
func CmdRequestRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
|
||||
func CmdRequestRegistry() *jiracli.CommandRegistryEntry {
|
||||
opts := RequestOptions{
|
||||
CommonOptions: jiracli.CommonOptions{
|
||||
Template: figtree.NewStringOption("request"),
|
||||
@@ -37,7 +37,7 @@ func CmdRequestRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
|
||||
}
|
||||
return CmdRequestUsage(cmd, &opts)
|
||||
},
|
||||
func(globals *jiracli.GlobalOptions) error {
|
||||
func(o *oreo.Client, globals *jiracli.GlobalOptions) error {
|
||||
return CmdRequest(o, globals, &opts)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user