github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/gen/cmd/toolkit/main.go (about) 1 package main 2 3 import ( 4 "os" 5 6 "github.com/spf13/cobra" 7 8 "github.com/machinefi/w3bstream/pkg/depends/gen/cmd/toolkit/cmd" 9 ) 10 11 var command = &cobra.Command{ 12 Use: "toolkit", 13 Version: "0.0.1", 14 } 15 16 func init() { 17 verbose := false 18 command.PersistentFlags().BoolVarP(&verbose, "verbose", "v", verbose, "") 19 20 command.AddCommand(cmd.Gen) 21 command.AddCommand(cmd.Patch) 22 command.AddCommand(cmd.Format) 23 } 24 25 func main() { 26 if err := command.Execute(); err != nil { 27 command.PrintErr(err) 28 os.Exit(-1) 29 } 30 }