Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdInstall = &cobra.Command{ Use: "install", Short: "Install the daemon server", Example: fmt.Sprintf("%s install", builder.Name), RunE: func(cmd *cobra.Command, args []string) error { str, err := srv.Install("server") if err != nil { return err } fmt.Println(str) return nil }, }
View Source
var CmdRemove = &cobra.Command{ Use: "remove", Short: "Remove the daemon server", Example: fmt.Sprintf("%s remove", builder.Name), RunE: func(cmd *cobra.Command, args []string) error { str, err := srv.Remove() if err != nil { return err } fmt.Println(str) return nil }, }
View Source
var CmdServer = &cobra.Command{ Use: "server", Short: "Start API server", Example: fmt.Sprintf("%s server -c config.yaml", builder.Name), SilenceUsage: true, PreRun: setup, RunE: run, PostRun: postRun, }
View Source
var CmdStart = &cobra.Command{ Use: "start", Short: "Start the daemon server", Example: fmt.Sprintf("%s start", builder.Name), RunE: func(cmd *cobra.Command, args []string) error { str, err := srv.Start() if err != nil { return err } fmt.Println(str) return nil }, }
Functions ¶
This section is empty.
Types ¶
type Executable ¶
type Executable struct{}
func (Executable) Run ¶
func (Executable) Run()
func (Executable) Start ¶
func (Executable) Start()
func (Executable) Stop ¶
func (Executable) Stop()
Click to show internal directories.
Click to hide internal directories.