summaryrefslogtreecommitdiff
path: root/cmds/trap.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/trap.go')
-rw-r--r--cmds/trap.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmds/trap.go b/cmds/trap.go
new file mode 100644
index 0000000..5faf3e3
--- /dev/null
+++ b/cmds/trap.go
@@ -0,0 +1,14 @@
+package cmds
+
+import (
+ "errors"
+ "fmt"
+)
+
+func Trap(args []string) (int, error) {
+ if len(args) <= 3 {
+ return 1, errors.New("usage: trap: [[arg] signal]")
+ }
+ fmt.Println(len(args), args)
+ return 0, nil
+}