feat: add custom type Cmd (#71)

This commit is contained in:
Robert Kaussow 2024-05-05 14:55:58 +02:00 committed by GitHub
parent 8ad911886e
commit 7143086616
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

2
go.mod
View File

@ -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
View File

@ -0,0 +1,8 @@
package types
import "golang.org/x/sys/execabs"
type Cmd struct {
*execabs.Cmd
Private bool
}