()
| 13 | ) |
| 14 | |
| 15 | func 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 | var rootCmd entcli.RootCmd |
| 25 | rootCmd.RunWithSubcommands(rootCmd.EnterpriseSubcommands()) |
| 26 | } |
nothing calls this directly
no test coverage detected