manager/cmd/ui.go

30 lines
709 B
Go
Raw Normal View History

2022-04-08 16:12:35 +02:00
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// uiCmd represents the ui command
var uiCmd = &cobra.Command{
Use: "ui",
Short: "serves the management ui over http",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("ui called")
},
}
func init() {
rootCmd.AddCommand(uiCmd)
// Here you will define your flags and configuration settings.
// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// uiCmd.PersistentFlags().String("foo", "", "A help for foo")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// uiCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}