run

package
v1.57.0 Latest Latest
Warning

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

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

Documentation

Overview

Package run implements a 'devenv apps run' command that allows developers to runs their applications from source code.

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

	// SynchronizeBinaries is flag indicating if to synchronize bin folder. Otherwise source code is synchronized.
	SynchronizeBinaries 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
Package stop implements a 'devenv apps run stop' command that allows developers to stop the development mode for their application.
Package stop implements a 'devenv apps run stop' command that allows developers to stop the development mode for their application.

Jump to

Keyboard shortcuts

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