mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-02 02:58:28 +02:00
update deps for kingpeon update
use os.exec instead of syscall.exec for windows
This commit is contained in:
+2
-2
@@ -58,10 +58,10 @@ func lookupCommand(app *kingpin.Application, command *DynamicCommand) *kingpin.C
|
||||
}
|
||||
|
||||
func RegisterDynamicCommands(app *kingpin.Application, commands DynamicCommands, t *template.Template) error {
|
||||
return doRegisterDynamicCommands(syscall.Exec, app, commands, t)
|
||||
return RegisterDynamicCommandsWithRunner(syscall.Exec, app, commands, t)
|
||||
}
|
||||
|
||||
func doRegisterDynamicCommands(run runner, app *kingpin.Application, commands DynamicCommands, t *template.Template) error {
|
||||
func RegisterDynamicCommandsWithRunner(run runner, app *kingpin.Application, commands DynamicCommands, t *template.Template) error {
|
||||
args := map[string]interface{}{}
|
||||
opts := map[string]interface{}{}
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ func TestRegisterDynamicCommands(t *testing.T) {
|
||||
return nil
|
||||
}
|
||||
|
||||
err = doRegisterDynamicCommands(run, app, data.DynamicCommands, tmpl)
|
||||
err = RegisterDynamicCommandsWithRunner(run, app, data.DynamicCommands, tmpl)
|
||||
assert.Nil(t, err)
|
||||
|
||||
expectedShell = "echo hello world"
|
||||
|
||||
Reference in New Issue
Block a user