File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (factory *Factory) Name() string {
4040func (factory * Factory ) New (params map [string ][]string , headers map [string ][]string ) (server.Slave , error ) {
4141 argv := make ([]string , len (factory .argv ))
4242 copy (argv , factory .argv )
43- if params [ "arg" ] != nil && len (params ["arg" ]) > 0 {
43+ if len (params ["arg" ]) > 0 {
4444 argv = append (argv , params ["arg" ]... )
4545 }
4646
Original file line number Diff line number Diff line change 44
55require (
66 github.com/NYTimes/gziphandler v1.1.1
7- github.com/creack/pty v1.1.11
7+ github.com/creack/pty v1.1.24
88 github.com/fatih/structs v1.1.0
99 github.com/gorilla/websocket v1.4.2
1010 github.com/pkg/errors v0.9.1
@@ -18,5 +18,4 @@ require (
1818 github.com/hashicorp/go-multierror v1.1.1 // indirect
1919 github.com/russross/blackfriday/v2 v2.0.1 // indirect
2020 github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
21- golang.org/x/sys v0.1.0 // indirect
2221)
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cq
33github.com/NYTimes/gziphandler v1.1.1 /go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c =
44github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY =
55github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d /go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU =
6- github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw =
7- github.com/creack/pty v1.1.11 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
6+ github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s =
7+ github.com/creack/pty v1.1.24 /go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE =
88github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
99github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
1010github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo =
@@ -30,7 +30,5 @@ github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M=
3030github.com/urfave/cli/v2 v2.3.0 /go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI =
3131github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552 h1:tjsK9T2IA3d2FFNxzDP7AJf+EXhyuPd7PB4Z2HrtAoc =
3232github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552 /go.mod h1:hg0ZaCmQL3rze1cH8Fh2g0a9q8vQs0uN8ESpePEwSEw =
33- golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U =
34- golang.org/x/sys v0.1.0 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
3533gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
3634gopkg.in/yaml.v2 v2.2.3 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
You can’t perform that action at this time.
0 commit comments