MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / RunMain

Function RunMain

tsunami/app/defaultclient.go:122–135  ·  view source on GitHub ↗

RunMain is used internally by generated code and should not be called directly.

()

Source from the content-addressed store, hash-verified

120
121// RunMain is used internally by generated code and should not be called directly.
122func RunMain() {
123 closeOnStdin := os.Getenv(TsunamiCloseOnStdinEnvVar) != ""
124
125 if closeOnStdin {
126 go func() {
127 // Read stdin until EOF/close, then exit the process
128 io.Copy(io.Discard, os.Stdin)
129 log.Printf("[tsunami] shutting down due to close of stdin\n")
130 os.Exit(0)
131 }()
132 }
133
134 engine.GetDefaultClient().RunMain()
135}
136
137// RegisterEmbeds is used internally by generated code and should not be called directly.
138func RegisterEmbeds(assetsFilesystem fs.FS, staticFilesystem fs.FS, manifest []byte) {

Callers

nothing calls this directly

Calls 3

GetDefaultClientFunction · 0.92
CopyMethod · 0.80
RunMainMethod · 0.45

Tested by

no test coverage detected