This commit is contained in:
Harivansh Rathi 2026-02-07 13:49:11 -05:00
commit 0595d93c49
28 changed files with 1763 additions and 0 deletions

39
cmd/agentikube/main.go Normal file
View file

@ -0,0 +1,39 @@
package main
import (
"fmt"
"os"
"github.com/rathi/agentikube/internal/commands"
"github.com/spf13/cobra"
)
var version = "dev"
func main() {
rootCmd := &cobra.Command{
Use: "agentikube",
Short: "CLI for long-running agent sandboxes on Kubernetes",
Long: "agentikube provisions and manages long-running agent sandboxes on AWS using Kubernetes.",
}
rootCmd.PersistentFlags().String("config", "agentikube.yaml", "path to config file")
rootCmd.AddCommand(
commands.NewInitCmd(),
commands.NewUpCmd(),
commands.NewCreateCmd(),
commands.NewListCmd(),
commands.NewSSHCmd(),
commands.NewDownCmd(),
commands.NewDestroyCmd(),
commands.NewStatusCmd(),
)
rootCmd.Version = version
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}