cmd

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "mol",
	Short: "Moleculer Go CLI",
	Long:  `Moleculer CLI allows u to control the lifecycle of your service.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute(runOpts RunOpts)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type RunOpts

type RunOpts struct {
	Config       *moleculer.Config
	StartHandler func(*broker.ServiceBroker, *cobra.Command)
}
var UserOpts *RunOpts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL