Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Remove root.go
JBDf7ab4745b148
diff --git a/cmd/gar/main.go b/cmd/gar/main.goindex ef7073c..2b8dbb3 100644--- a/cmd/gar/main.go+++ b/cmd/gar/main.go@@ -7,17 +7,34 @@ import ("fmt""os"+ "github.com/spf13/cobra""google.golang.org/grpc""google.golang.org/grpc/credentials/insecure")func main() {- if err := Execute(); err != nil {+ if err := rootCmd.Execute(); err != nil {fmt.Fprintf(os.Stderr, "Error: %v\n", err)os.Exit(1)}}+var rootCmd = &cobra.Command{+ Use: "gar",+ Short: "GAR - Google Agent Runtime CLI",+ Long: `Gar is a CLI tool for managing agent orchestrator sessions.+It provides commands to trigger sessions, resume from checkpoints,+inspect session state, register agents, and run the controller server.`,+}++func init() {+ // Add subcommands+ rootCmd.AddCommand(triggerCmd)+ rootCmd.AddCommand(inspectCmd)+ rootCmd.AddCommand(registerCmd)+ rootCmd.AddCommand(serveCmd)+}+func openConn(server string) (*grpc.ClientConn, error) {conn, err := grpc.NewClient(server, grpc.WithTransportCredentials(insecure.NewCredentials()))if err != nil {diff --git a/cmd/gar/root.go b/cmd/gar/root.godeleted file mode 100644index 54434e9..0000000--- a/cmd/gar/root.go+++ /dev/null@@ -1,26 +0,0 @@-package main--import (- "github.com/spf13/cobra"-)--var rootCmd = &cobra.Command{- Use: "gar",- Short: "GAR - Google Agent Runtime CLI",- Long: `Gar is a CLI tool for managing agent orchestrator sessions.-It provides commands to trigger sessions, resume from checkpoints,-inspect session state, register agents, and run the controller server.`,-}--// Execute runs the root command-func Execute() error {- return rootCmd.Execute()-}--func init() {- // Add subcommands- rootCmd.AddCommand(triggerCmd)- rootCmd.AddCommand(inspectCmd)- rootCmd.AddCommand(registerCmd)- rootCmd.AddCommand(serveCmd)-}