mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
03ab37b343
This cleans up `root.go` a bit, adds tests for middleware HTTP transport functions, and removes two HTTP requests we always always performed previously when executing *any* client command. It should improve CLI performance (especially for users with higher latency).
13 lines
162 B
Go
13 lines
162 B
Go
package main
|
|
|
|
import (
|
|
_ "time/tzdata"
|
|
|
|
"github.com/coder/coder/v2/cli"
|
|
)
|
|
|
|
func main() {
|
|
var rootCmd cli.RootCmd
|
|
rootCmd.RunWithSubcommands(rootCmd.AGPL())
|
|
}
|