mirror of
https://github.com/harivansh-afk/agentikube.git
synced 2026-04-18 23:02:14 +00:00
init
This commit is contained in:
commit
0595d93c49
28 changed files with 1763 additions and 0 deletions
39
cmd/agentikube/main.go
Normal file
39
cmd/agentikube/main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue