context

package
v0.0.0-...-7f57805 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextCommand

func NewContextCommand(settings *environment.Settings) *cobra.Command

NewContextCommand creates a new "fabric context" command

func NewContextDeleteCommand

func NewContextDeleteCommand(settings *environment.Settings) *cobra.Command

NewContextDeleteCommand creates a new "fabric context delete" command

func NewContextListCommand

func NewContextListCommand(settings *environment.Settings) *cobra.Command

NewContextListCommand creates a new "fabric context list" command

func NewContextSetCommand

func NewContextSetCommand(settings *environment.Settings) *cobra.Command

NewContextSetCommand creates a new "fabric context set" command

func NewContextUseCommand

func NewContextUseCommand(settings *environment.Settings) *cobra.Command

NewContextUseCommand creates a new "fabric context use" command

func NewContextViewCommand

func NewContextViewCommand(settings *environment.Settings) *cobra.Command

NewContextViewCommand creates a new "fabric context view" command

Types

type DeleteCommand

type DeleteCommand struct {
	common.Command

	Name string
}

DeleteCommand implements the delete context command

func (*DeleteCommand) Run

func (c *DeleteCommand) Run() error

Run executes the command

func (*DeleteCommand) Validate

func (c *DeleteCommand) Validate() error

Validate checks the required parameters for run

type ListCommand

type ListCommand struct {
	common.Command
}

ListCommand implements the list context command

func (*ListCommand) Run

func (c *ListCommand) Run() error

Run executes the command

type SetCommand

type SetCommand struct {
	common.Command

	Name    string
	Context *environment.Context
}

SetCommand implements the set context command

func (*SetCommand) Run

func (c *SetCommand) Run() error

Run executes the command

func (*SetCommand) Validate

func (c *SetCommand) Validate() error

Validate checks the required parameters for run

type UseCommand

type UseCommand struct {
	common.Command

	Name string
}

UseCommand implements the use context command

func (*UseCommand) Run

func (c *UseCommand) Run() error

Run executes the command

func (*UseCommand) Validate

func (c *UseCommand) Validate() error

Validate checks the required parameters for run

type ViewCommand

type ViewCommand struct {
	common.Command

	Name string
}

ViewCommand implements the current command

func (*ViewCommand) Run

func (c *ViewCommand) Run() error

Run executes the command

Jump to

Keyboard shortcuts

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