config

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEditCmd

func NewEditCmd(f *cmdutil.Factory) *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(f *cmdutil.Factory) *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

	Config func() (*kickoff.Config, error)

	ConfigPath string
}

EditOptions holds the options for the edit command.

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

	Config func() (*kickoff.Config, error)

	Output string
}

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