version

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion() *cobra.Command

NewCmdVersion returns a cobra command for fetching versions.

Types

type Options

type Options struct{}

Options is a struct to support version command.

func NewOptions

func NewOptions() *Options

NewOptions returns an initialized Options instance.

func (*Options) Complete

func (o *Options) Complete(cmd *cobra.Command, args []string) (err error)

func (*Options) Run

func (o *Options) Run(args []string) (err error)

Run executes a creat subcommand using the specified options.

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command, args []string) (err error)

Validate makes sure there is no discrepancy in command options.

Jump to

Keyboard shortcuts

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