chore: remove middleware to request version and entitlement warnings (#12750)

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).
This commit is contained in:
Kyle Carberry
2024-03-25 15:01:42 -04:00
committed by GitHub
parent ba3879ac47
commit 03ab37b343
18 changed files with 411 additions and 434 deletions
+1 -1
View File
@@ -8,5 +8,5 @@ import (
func main() {
var rootCmd entcli.RootCmd
rootCmd.RunMain(rootCmd.EnterpriseSubcommands())
rootCmd.RunWithSubcommands(rootCmd.EnterpriseSubcommands())
}