MCPcopy Create free account
hub / github.com/cogentcore/core / Exit

Method Exit

shell/builtins.go:71–74  ·  view source on GitHub ↗

Exit exits the shell.

(cmdIO *exec.CmdIO, args ...string)

Source from the content-addressed store, hash-verified

69
70// Exit exits the shell.
71func (sh *Shell) Exit(cmdIO *exec.CmdIO, args ...string) error {
72 os.Exit(0)
73 return nil
74}
75
76// Set sets the given environment variable to the given value.
77func (sh *Shell) Set(cmdIO *exec.CmdIO, args ...string) error {

Callers 14

ExecTmplMethod · 0.80
TestMainFunction · 0.80
goslMainFunction · 0.80
InteractiveMethod · 0.80
TestMainFunction · 0.80
TestMainFunction · 0.80
mainFunction · 0.80
usageFunction · 0.80
RunFunction · 0.80
runCmdFunction · 0.80
configFunction · 0.80
addFieldsImplFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestMainFunction · 0.64
TestMainFunction · 0.64
TestMainFunction · 0.64