cmd

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitCmdFlagsDefault = &InitCmdFlags{
	reconfigure:      false,
	overwrite:        false,
	skipQuestions:    false,
	templateRepoURL:  "https://github.com/covexo/devspace-templates.git",
	templateRepoPath: "",
	language:         "",

	cloudProvider:                     "",
	useDevSpaceCloud:                  false,
	addDevSpaceCloudToLocalKubernetes: false,
	namespace:                         "",
	createInternalRegistry:            false,
}

InitCmdFlagsDefault are the default flags for InitCmdFlags

View Source
var UpFlagsDefault = &UpCmdFlags{
	tiller:          true,
	open:            "cmd",
	initRegistries:  true,
	build:           false,
	sync:            true,
	terminal:        true,
	switchContext:   true,
	exitAfterDeploy: false,
	skipPipeline:    false,
	allyes:          false,
	deploy:          false,
	portforwarding:  true,
	verboseSync:     false,
	container:       "",
	namespace:       "",
	labelSelector:   "",
}

UpFlagsDefault are the default flags for UpCmdFlags

Functions

func Execute

func Execute()

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.

func GetPaths

func GetPaths() []string

GetPaths retrieves the watch paths from the config object

Types

type AddCmd added in v0.2.0

type AddCmd struct {
	// contains filtered or unexported fields
}

AddCmd holds the information needed for the add command

func (*AddCmd) RunAddDeployment

func (cmd *AddCmd) RunAddDeployment(cobraCmd *cobra.Command, args []string)

RunAddDeployment executes the add deployment command logic

func (*AddCmd) RunAddImage

func (cmd *AddCmd) RunAddImage(cobraCmd *cobra.Command, args []string)

RunAddImage executes the add image command logic

func (*AddCmd) RunAddPackage added in v1.1.0

func (cmd *AddCmd) RunAddPackage(cobraCmd *cobra.Command, args []string)

RunAddPackage executes the add package command logic

func (*AddCmd) RunAddPort added in v0.2.0

func (cmd *AddCmd) RunAddPort(cobraCmd *cobra.Command, args []string)

RunAddPort executes the add port command logic

func (*AddCmd) RunAddService

func (cmd *AddCmd) RunAddService(cobraCmd *cobra.Command, args []string)

RunAddService executes the add image command logic

func (*AddCmd) RunAddSync added in v0.2.0

func (cmd *AddCmd) RunAddSync(cobraCmd *cobra.Command, args []string)

RunAddSync executes the add sync command logic

type AddCmdFlags added in v0.2.0

type AddCmdFlags struct {
}

AddCmdFlags holds the possible flags for the add command

type DeployCmd

type DeployCmd struct {
	// contains filtered or unexported fields
}

DeployCmd holds the required data for the down cmd

func (*DeployCmd) Run

func (cmd *DeployCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the down command logic

type DeployCmdFlags

type DeployCmdFlags struct {
	Namespace       string
	KubeContext     string
	Config          string
	ConfigOverwrite string
	DockerTarget    string
	CloudTarget     string
	SwitchContext   bool
	SkipBuild       bool
	GitBranch       string
}

DeployCmdFlags holds the possible down cmd flags

type DownCmd

type DownCmd struct {
	// contains filtered or unexported fields
}

DownCmd holds the required data for the down cmd

func (*DownCmd) Run

func (cmd *DownCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the down command logic

type DownCmdFlags

type DownCmdFlags struct {
	// contains filtered or unexported fields
}

DownCmdFlags holds the possible down cmd flags

type EnterCmd added in v1.1.0

type EnterCmd struct {
	// contains filtered or unexported fields
}

EnterCmd is a struct that defines a command call for "enter"

func (*EnterCmd) Run added in v1.1.0

func (cmd *EnterCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the command logic

type EnterCmdFlags added in v1.1.0

type EnterCmdFlags struct {
	// contains filtered or unexported fields
}

EnterCmdFlags are the flags available for the enter-command

type InitCmd

type InitCmd struct {
	// contains filtered or unexported fields
}

InitCmd is a struct that defines a command call for "init"

func (*InitCmd) Run

func (cmd *InitCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the command logic

type InitCmdFlags

type InitCmdFlags struct {
	// contains filtered or unexported fields
}

InitCmdFlags are the flags available for the init-command

type InstallCmd added in v0.1.1

type InstallCmd struct {
	// contains filtered or unexported fields
}

InstallCmd is a struct that defines a command call for "install"

func (*InstallCmd) Run added in v0.1.1

func (cmd *InstallCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the command logic

type InstallCmdFlags added in v0.1.1

type InstallCmdFlags struct {
}

InstallCmdFlags are the flags available for the install-command

type ListCmd added in v0.2.0

type ListCmd struct {
	// contains filtered or unexported fields
}

ListCmd holds the information needed for the list command

func (*ListCmd) RunListPackage added in v1.1.0

func (cmd *ListCmd) RunListPackage(cobraCmd *cobra.Command, args []string)

RunListPackage runs the list sync command logic

func (*ListCmd) RunListPort added in v0.2.0

func (cmd *ListCmd) RunListPort(cobraCmd *cobra.Command, args []string)

RunListPort runs the list port command logic

func (*ListCmd) RunListService

func (cmd *ListCmd) RunListService(cobraCmd *cobra.Command, args []string)

RunListService runs the list service command logic

func (*ListCmd) RunListSync added in v0.2.0

func (cmd *ListCmd) RunListSync(cobraCmd *cobra.Command, args []string)

RunListSync runs the list sync command logic

type ListCmdFlags added in v0.2.0

type ListCmdFlags struct {
}

ListCmdFlags holds the possible flags for the list command

type RemoveCmd added in v0.2.0

type RemoveCmd struct {
	// contains filtered or unexported fields
}

RemoveCmd holds the information needed for the remove command

func (*RemoveCmd) RunRemoveDeployment

func (cmd *RemoveCmd) RunRemoveDeployment(cobraCmd *cobra.Command, args []string)

RunRemoveDeployment executes the specified deployment

func (*RemoveCmd) RunRemoveImage

func (cmd *RemoveCmd) RunRemoveImage(cobraCmd *cobra.Command, args []string)

RunRemoveImage executes the remove image command logic

func (*RemoveCmd) RunRemovePackage added in v1.1.0

func (cmd *RemoveCmd) RunRemovePackage(cobraCmd *cobra.Command, args []string)

RunRemovePackage executes the remove package command logic

func (*RemoveCmd) RunRemovePort added in v0.2.0

func (cmd *RemoveCmd) RunRemovePort(cobraCmd *cobra.Command, args []string)

RunRemovePort executes the remove port command logic

func (*RemoveCmd) RunRemoveService

func (cmd *RemoveCmd) RunRemoveService(cobraCmd *cobra.Command, args []string)

RunRemoveService executes the remove service command logic

func (*RemoveCmd) RunRemoveSync added in v0.2.0

func (cmd *RemoveCmd) RunRemoveSync(cobraCmd *cobra.Command, args []string)

RunRemoveSync executes the remove sync command logic

type ResetCmd

type ResetCmd struct {
	// contains filtered or unexported fields
}

ResetCmd holds the needed command information

func (*ResetCmd) Run

func (cmd *ResetCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the reset command logic

type ResetCmdFlags

type ResetCmdFlags struct {
	// contains filtered or unexported fields
}

ResetCmdFlags holds the possible reset cmd flags

type StatusCmd added in v0.2.0

type StatusCmd struct {
	// contains filtered or unexported fields
}

StatusCmd holds the information needed for the status command

func (*StatusCmd) RunStatus added in v0.2.0

func (cmd *StatusCmd) RunStatus(cobraCmd *cobra.Command, args []string)

RunStatus executes the devspace status command logic

func (*StatusCmd) RunStatusSync added in v0.2.0

func (cmd *StatusCmd) RunStatusSync(cobraCmd *cobra.Command, args []string)

RunStatusSync executes the devspace status sync commad logic

type StatusCmdFlags added in v0.2.0

type StatusCmdFlags struct {
}

StatusCmdFlags holds the possible flags for the list command

type UpCmd

type UpCmd struct {
	// contains filtered or unexported fields
}

UpCmd is a struct that defines a command call for "up"

func (*UpCmd) Run

func (cmd *UpCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the command logic

type UpCmdFlags

type UpCmdFlags struct {
	// contains filtered or unexported fields
}

UpCmdFlags are the flags available for the up-command

type UpgradeCmd added in v0.1.0

type UpgradeCmd struct {
	// contains filtered or unexported fields
}

UpgradeCmd is a struct that defines a command call for "upgrade"

func (*UpgradeCmd) Run added in v0.1.0

func (cmd *UpgradeCmd) Run(cobraCmd *cobra.Command, args []string)

Run executes the command logic

type UpgradeCmdFlags added in v0.1.0

type UpgradeCmdFlags struct {
}

UpgradeCmdFlags are the flags available for the upgrade-command

Jump to

Keyboard shortcuts

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