From 7143086616c513bd52395b44833104bc823b761d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 5 May 2024 14:55:58 +0200 Subject: [PATCH] feat: add custom type Cmd (#71) --- go.mod | 2 +- types/command.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 types/command.go diff --git a/go.mod b/go.mod index 6ec86ce..9cde1e5 100644 --- a/go.mod +++ b/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 ) diff --git a/types/command.go b/types/command.go new file mode 100644 index 0000000..2e6ba95 --- /dev/null +++ b/types/command.go @@ -0,0 +1,8 @@ +package types + +import "golang.org/x/sys/execabs" + +type Cmd struct { + *execabs.Cmd + Private bool +}