config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEditCmd

func NewEditCmd(streams cli.IOStreams) *cobra.Command

NewEditCmd creates a new command that opens the kickoff config in a configurable editor so that the user can edit it.

func NewShowCmd

func NewShowCmd(streams cli.IOStreams) *cobra.Command

NewShowCmd creates a new command that prints the kickoff config in a configurable output format.

Types

type EditOptions

type EditOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
}

EditOptions holds the options for the edit command.

func (*EditOptions) Complete

func (o *EditOptions) Complete() (err error)

Complete completes the command options.

func (*EditOptions) Run

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

Run loads the config file using the configured editor. The config file is saved after the editor is closed.

type ShowOptions

type ShowOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
	cmdutil.OutputFlag
}

ShowOptions holds the options for the show command.

func (*ShowOptions) Run

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

Run prints the kickoff config in the configured format.

Jump to

Keyboard shortcuts

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