run

package
v1.42.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(log logrus.FieldLogger) *cli.Command

NewCmd creates a new cli.Command for the `apps dev` command

Types

type Options

type Options struct {

	// DeploymentProfile is the profile to use with devspace, it's passed in in an env variable $DEVENV_DEV_DEPLOYMENT_PROFILE
	DeploymentProfile string

	// AppNameOrPath is the app to dev either (in case of dev it should always be path)
	AppNameOrPath string

	// LocalImage is a flag for enabling building images from source instead of using images from CI
	LocalImage bool

	// Terminal is a flag passed to devspace as DEVENV_DEV_TERMINAL=true. It activates the profile for starting terminal instead of service.
	Terminal bool

	// SkipPortforwarding is a flag passed to devspace as DEVENV_DEV_SKIP_PORTFORWARDING=true. It skips port forwarding.
	SkipPortForwarding bool

	// DeployDependencies is flag to determine if app dependencies should be deployed as well.
	DeployDependencies bool
	// contains filtered or unexported fields
}

Options are various options for the `apps dev` command

func NewOptions

func NewOptions(log logrus.FieldLogger) (*Options, error)

NewOptions create an initialized options struct for the `apps dev` command

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run runs the `apps dev` command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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