From 54545ca337ee803ceb7d7e25a05e929dca2cd856 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Tue, 27 May 2025 13:16:32 -0400 Subject: Get started on trap command --- global/global.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'global/global.go') diff --git a/global/global.go b/global/global.go index 708f05a..e7d8d79 100644 --- a/global/global.go +++ b/global/global.go @@ -5,12 +5,15 @@ import ( "strings" ) -var Options []string + var ReturnCode int var Paths []string +var Options []string +var Traps map[os.Signal]string func init() { - Options = make([]string, 0) ReturnCode = 0 + Options = make([]string, 0) + Traps = make(map[os.Signal]string) Paths = strings.Split(os.Getenv("PATH"), ":") } -- cgit v1.2.3