From 508549128d21d752cb861ac2d65bc8fc89e32555 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Mon, 26 May 2025 21:41:51 -0400 Subject: Added external commands --- global/global.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'global/global.go') diff --git a/global/global.go b/global/global.go index f84a340..708f05a 100644 --- a/global/global.go +++ b/global/global.go @@ -1,9 +1,16 @@ package global +import ( + "os" + "strings" +) + var Options []string var ReturnCode int +var Paths []string func init() { Options = make([]string, 0) ReturnCode = 0 + Paths = strings.Split(os.Getenv("PATH"), ":") } -- cgit v1.2.3