context

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: 17 Imported by: 0

Documentation

Overview

Package context implements a 'devenv context' command that allows developers to change which devenv they're currently using.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdContext

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

Types

type Options

type Options struct {

	// DesiredContext is the context string that the should be set. It
	// takes the format of <runtime>:<clusterName>.
	DesiredContext string
	// contains filtered or unexported fields
}

Options contains the arguments and required dependencies of the context command.

func NewOptions

func NewOptions(log logrus.FieldLogger, b *box.Config) *Options

NewOptions creates a new Options struct with all of the required dependencies.

func (*Options) Run

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

Jump to

Keyboard shortcuts

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