summaryrefslogtreecommitdiff
path: root/cmds/exit.go
diff options
context:
space:
mode:
authorbpc2003 <wpesfriendnva@gmail.com>2025-05-24 14:25:58 -0400
committerbpc2003 <wpesfriendnva@gmail.com>2025-05-24 14:25:58 -0400
commit165c5c078b41ad2ea2edbd325948ed5aa0602e06 (patch)
treefc69e2cf5080b443091ecb5134cf0a47dfe78fe1 /cmds/exit.go
parent1a90e3410a9bdaf606a6124930a0913c07b44c87 (diff)
consolidate all environment variable commands into env.go
Diffstat (limited to 'cmds/exit.go')
-rw-r--r--cmds/exit.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/exit.go b/cmds/exit.go
index a295ff4..5170b26 100644
--- a/cmds/exit.go
+++ b/cmds/exit.go
@@ -6,6 +6,8 @@ import (
"strconv"
)
+// exit the shell and returns the provided status
+// if no status is specified returns 0
func exit(args []string) error {
status := 0
if len(args) > 1 {