update

package
v0.23.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 25 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 {
	options.BaseOptions
	Dir                    string
	Version                string
	RepositoryURL          string
	RepositoryOwner        string
	RepositoryName         string
	KptBinary              string
	Strategy               string
	IgnoreYamlContentError bool
	ContainerTool          string
	GitClient              gitclient.Interface
	CommandRunner          cmdrunner.CommandRunner
}

Options the options for the command

func NewCmdKptUpdate

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

NewCmdKptUpdate creates a command object for the command

func (*Options) AddFlags

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

AddFlags adds CLI flags

func (*Options) LoadOverrideStrategies

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