Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DevEndCmd = &cobra.Command{ Use: "end [NAME]", Short: "end dev model", Long: `end dev model`, Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { return errors.Errorf("%q requires at least 1 argument\n", cmd.CommandPath()) } return nil }, Run: func(cmd *cobra.Command, args []string) { applicationName := args[0] _, nocalhostSvc, err := common.InitAppAndCheckIfSvcExist(applicationName, common.WorkloadName, common.ServiceType) must(err) EndDevMode(nocalhostSvc) }, }
View Source
var DevStartCmd = &cobra.Command{ Use: "start [NAME]", Short: "Start DevMode", Long: `Start DevMode`, Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { return errors.Errorf("%q requires at least 1 argument\n", cmd.CommandPath()) } return nil }, Run: func(cmd *cobra.Command, args []string) { d := DevStartOps{DevStartOptions: devStartOps} must(d.StartDevMode(args[0])) }, }
Functions ¶
func EndDevMode ¶
func EndDevMode(nocalhostSvc *controller.Controller) error
Types ¶
type DevStartOps ¶
type DevStartOps struct {
*model.DevStartOptions
NocalhostSvc *controller.Controller
NocalhostApp *app.Application
}
func (*DevStartOps) StartDevMode ¶
func (d *DevStartOps) StartDevMode(applicationName string) error
func (*DevStartOps) StartSyncthing ¶
Click to show internal directories.
Click to hide internal directories.