mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-21 14:10:39 +00:00
feat: add custom type Cmd (#71)
This commit is contained in:
parent
8ad911886e
commit
7143086616
2
go.mod
2
go.mod
@ -10,6 +10,7 @@ require (
|
||||
github.com/stretchr/testify v1.9.0
|
||||
github.com/urfave/cli/v2 v2.27.2
|
||||
golang.org/x/net v0.24.0
|
||||
golang.org/x/sys v0.19.0
|
||||
)
|
||||
|
||||
require (
|
||||
@ -29,6 +30,5 @@ require (
|
||||
github.com/spf13/cast v1.3.1 // indirect
|
||||
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
|
||||
golang.org/x/crypto v0.22.0 // indirect
|
||||
golang.org/x/sys v0.19.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
8
types/command.go
Normal file
8
types/command.go
Normal file
@ -0,0 +1,8 @@
|
||||
package types
|
||||
|
||||
import "golang.org/x/sys/execabs"
|
||||
|
||||
type Cmd struct {
|
||||
*execabs.Cmd
|
||||
Private bool
|
||||
}
|
Loading…
Reference in New Issue
Block a user