github.com/moleculer-go/moleculer@v0.3.3/cli/main.go (about) 1 package cli 2 3 import ( 4 "github.com/moleculer-go/moleculer" 5 "github.com/moleculer-go/moleculer/broker" 6 "github.com/moleculer-go/moleculer/cli/cmd" 7 "github.com/spf13/cobra" 8 ) 9 10 // Start parse the config from the cli args. creates a service broker and pass down to the startHandler. 11 func Start(config *moleculer.Config, startHandler func(*broker.ServiceBroker, *cobra.Command)) { 12 cmd.Execute(cmd.RunOpts{Config: config, StartHandler: startHandler}) 13 }