dev

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 25 Imported by: 0

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

func (d *DevStartOps) StartSyncthing(podName string, resume bool, stop bool, syncDouble *bool, override bool)

Jump to

Keyboard shortcuts

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