From b1247d2d0d51108c910a73891ff3116e5f032ab1 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Sat, 12 Jan 2019 18:39:45 +0100 Subject: [pkg] all your deps are vendored to us --- vendor/github.com/jmshal/go-locale/get_command_output.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vendor/github.com/jmshal/go-locale/get_command_output.go (limited to 'vendor/github.com/jmshal/go-locale/get_command_output.go') diff --git a/vendor/github.com/jmshal/go-locale/get_command_output.go b/vendor/github.com/jmshal/go-locale/get_command_output.go new file mode 100644 index 0000000..c4013d2 --- /dev/null +++ b/vendor/github.com/jmshal/go-locale/get_command_output.go @@ -0,0 +1,16 @@ +package go_locale + +import ( + "os/exec" +) + +func getCommandOutput(name string, args ...string) (string, error) { + cmd := exec.Command(name, args...) + + out, err := cmd.Output() + if err != nil { + return "", err + } + + return string(out), nil +} -- cgit v1.2.3