cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

InitCmdFlagsDefault are the default flags for InitCmdFlags

View Source
var UpFlagsDefault = &UpCmdFlags{
	tiller:         true,
	open:           "cmd",
	initRegistries: true,
	build:          false,
	sync:           true,
	deploy:         false,
	portforwarding: true,
	noSleep:        false,
	verboseSync:    false,
	container:      "",
}

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.

Types

type AddCmd

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

AddCmd holds the information needed for the add command

func (*AddCmd) RunAddPackage

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

RunAddPackage executes the add package command logic

func (*AddCmd) RunAddPort

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

RunAddPort executes the add port command logic

func (*AddCmd) RunAddSync

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

RunAddSync executes the add sync command logic

type AddCmdFlags

type AddCmdFlags struct {
}

AddCmdFlags holds the possible flags for the add command

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 {
}

DownCmdFlags holds the possible down cmd flags

type EnterCmd

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

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

func (*EnterCmd) Run

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

Run executes the command logic

type EnterCmdFlags

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

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

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

func (*InstallCmd) Run

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

Run executes the command logic

type InstallCmdFlags

type InstallCmdFlags struct {
}

InstallCmdFlags are the flags available for the install-command

type ListCmd

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

ListCmd holds the information needed for the list command

func (*ListCmd) RunListPackage

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

RunListPackage runs the list sync command logic

func (*ListCmd) RunListPort

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

RunListPort runs the list port command logic

func (*ListCmd) RunListSync

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

RunListSync runs the list sync command logic

type ListCmdFlags

type ListCmdFlags struct {
}

ListCmdFlags holds the possible flags for the list command

type RemoveCmd

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

RemoveCmd holds the information needed for the remove command

func (*RemoveCmd) RunRemovePackage

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

RunRemovePackage executes the remove package command logic

func (*RemoveCmd) RunRemovePort

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

RunRemovePort executes the remove port command logic

func (*RemoveCmd) RunRemoveSync

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 command flags

type StatusCmd

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

StatusCmd holds the information needed for the status command

func (*StatusCmd) RunStatus

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

RunStatus executes the devspace status command logic

func (*StatusCmd) RunStatusSync

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

RunStatusSync executes the devspace status sync commad logic

type StatusCmdFlags

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

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

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

func (*UpgradeCmd) Run

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

Run executes the command logic

type UpgradeCmdFlags

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