package main import ( "fmt" "os" "github.com/spf13/cobra" ) var version = "dev" func main() { root := &cobra.Command{ Use: "mcr-web", Short: "Metacircular Container Registry web UI", Version: version, } root.AddCommand(serverCmd()) if err := root.Execute(); err != nil { os.Exit(1) } } func serverCmd() *cobra.Command { return &cobra.Command{ Use: "server", Short: "Start the web UI server", RunE: func(_ *cobra.Command, _ []string) error { return fmt.Errorf("not implemented") }, } }