diff

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(f util.Factory, streams genericiooptions.IOStreams) *cobra.Command

func ToDirName added in v0.2.0

func ToDirName(rev history.Revision) string

ToDirName returns a name for a directory which the given revision should be written to.

Types

type Options

type Options struct {
	genericiooptions.IOStreams

	Namespace  string
	Revisions  []int64
	PrintFlags *util.PrintFlags

	Diff diff.Program
}

func NewOptions

func NewOptions(streams genericiooptions.IOStreams) *Options

func (*Options) Complete

func (o *Options) Complete(f util.Factory) error

Complete takes the command arguments and factory and infers any remaining options.

func (*Options) Run

func (o *Options) Run(ctx context.Context, f util.Factory, args []string) (err error)

Run performs the diff operation.

func (*Options) Validate

func (o *Options) Validate() error

Validate checks the set of flags provided by the user.

Jump to

Keyboard shortcuts

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