update

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Dir                    string
	Version                string
	RepositoryURL          string
	RepositoryOwner        string
	RepositoryName         string
	KptBinary              string
	Strategy               string
	IgnoreYamlContentError bool
	GitClient              gitclient.Interface
	CommandRunner          cmdrunner.CommandRunner
}

KptOptions the options for the command

func NewCmdKptUpdate

func NewCmdKptUpdate() (*cobra.Command, *Options)

NewCmdKptUpdate creates a command object for the command

func (*Options) AddFlags added in v0.0.193

func (o *Options) AddFlags(cmd *cobra.Command)

AddFlags adds CLI flags

func (*Options) LoadOverrideStrategies added in v0.0.301

func (o *Options) LoadOverrideStrategies() (map[string]string, error)

func (*Options) Matches

func (o *Options) Matches(path string) (bool, error)

Matches returns true if this kpt file matches the filters

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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