MCPcopy Index your code
hub / github.com/coder/coder / main

Function main

cmd/coder/main.go:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func main() {
16 if len(os.Args) > 1 && os.Args[1] == "agent-exec" {
17 err := agentexec.CLI()
18 _, _ = fmt.Fprintln(os.Stderr, err)
19 os.Exit(1)
20 }
21 // This preserves backwards compatibility with an init function that is causing grief for
22 // web terminals using agent-exec + screen. See https://github.com/coder/coder/pull/15817
23 tea.InitTerminal()
24
25 var rootCmd cli.RootCmd
26 rootCmd.RunWithSubcommands(rootCmd.AGPL())
27}

Callers

nothing calls this directly

Calls 4

RunWithSubcommandsMethod · 0.95
AGPLMethod · 0.95
CLIFunction · 0.92
ExitMethod · 0.80

Tested by

no test coverage detected