Files
warpbox/cmd/main.go
Daniel Legt 877ac90574 feat(cli): add comprehensive command suite
+ Adds new commands for managing boxes, environment variables, and running the server.
* The command structure is greatly expanded to improve user experience and coverage for core service functionalities.
2026-04-30 11:31:43 +03:00

29 lines
529 B
Go

package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func main() {
if err := newRootCommand().Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func newRootCommand() *cobra.Command {
rootCmd := &cobra.Command{
Use: "warpbox",
Short: "WarpBox command line interface",
Long: "WarpBox provides commands for running and managing the WarpBox service.",
}
rootCmd.AddCommand(newRunCommand())
rootCmd.AddCommand(newBoxCommand())
rootCmd.AddCommand(newEnvCommand())
return rootCmd
}