config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendedCommandName = "config"

RecommendedCommandName is the recommended config command name

Variables

This section is empty.

Functions

func NewCmdConfiguration

func NewCmdConfiguration(name, fullName string) *cobra.Command

NewCmdConfiguration implements the utils config odo command

func NewCmdSet

func NewCmdSet(name, fullName string) *cobra.Command

NewCmdSet implements the config set odo command

func NewCmdUnset

func NewCmdUnset(name, fullName string) *cobra.Command

NewCmdUnset implements the config unset odo command

func NewCmdView

func NewCmdView(name, fullName string) *cobra.Command

NewCmdView implements the config view odo command

Types

type SetOptions

type SetOptions struct {
	*clicomponent.CommonPushOptions

	IsDevfile bool
	// contains filtered or unexported fields
}

SetOptions encapsulates the options for the command

func NewSetOptions

func NewSetOptions() *SetOptions

NewSetOptions creates a new SetOptions instance

func (*SetOptions) Complete

func (o *SetOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes SetOptions after they've been created

func (*SetOptions) DevfileRun

func (o *SetOptions) DevfileRun() (err error)

DevfileRun is ran when the context detects a devfile locally

func (*SetOptions) Run

func (o *SetOptions) Run() (err error)

Run contains the logic for the command

func (*SetOptions) Validate

func (o *SetOptions) Validate() (err error)

Validate validates the SetOptions based on completed values

type UnsetOptions

type UnsetOptions struct {
	*clicomponent.CommonPushOptions

	IsDevfile bool
	// contains filtered or unexported fields
}

UnsetOptions encapsulates the options for the command

func NewUnsetOptions

func NewUnsetOptions() *UnsetOptions

NewUnsetOptions creates a new UnsetOptions instance

func (*UnsetOptions) Complete

func (o *UnsetOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes UnsetOptions after they've been created

func (*UnsetOptions) DevfileRun

func (o *UnsetOptions) DevfileRun() (err error)

DevfileRun is ran when the context detects a devfile locally

func (*UnsetOptions) Run

func (o *UnsetOptions) Run() (err error)

Run contains the logic for the command

func (*UnsetOptions) Validate

func (o *UnsetOptions) Validate() (err error)

Validate validates the UnsetOptions based on completed values

type ViewOptions

type ViewOptions struct {
	IsDevfile bool
	// contains filtered or unexported fields
}

ViewOptions encapsulates the options for the command

func NewViewOptions

func NewViewOptions() *ViewOptions

NewViewOptions creates a new ViewOptions instance

func (*ViewOptions) Complete

func (o *ViewOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes ViewOptions after they've been created

func (*ViewOptions) DevfileRun

func (o *ViewOptions) DevfileRun() (err error)

DevfileRun is ran when the context detects a devfile locally

func (*ViewOptions) Run

func (o *ViewOptions) Run() (err error)

Run contains the logic for the command

func (*ViewOptions) Validate

func (o *ViewOptions) Validate() (err error)

Validate validates the ViewOptions based on completed values

Jump to

Keyboard shortcuts

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