github.com/sdqri/sequined@v0.0.0-20240421190656-fc6bf956f4d8/cmd/sequined-cli/commands/weave.go (about) 1 package commands 2 3 import ( 4 "fmt" 5 6 "github.com/spf13/cobra" 7 ) 8 9 var weaveCmd = &cobra.Command{ 10 Use: "weave", 11 Short: "Generate a graph, activate observer, and serve the graph with dashboard.", 12 Run: func(cmd *cobra.Command, args []string) { 13 fmt.Println("test") 14 }, 15 } 16 17 func init() { 18 rootCmd.AddCommand(weaveCmd) 19 20 // Here you will define your flags and configuration settings. 21 22 // Cobra supports Persistent Flags which will work for this command 23 // and all subcommands, e.g.: 24 // weaveCmd.PersistentFlags().String("foo", "", "A help for foo") 25 26 // Cobra supports local flags which will only run when this command 27 // is called directly, e.g.: 28 // weaveCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 29 }