version

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

Cmd wraps the smctl version command

func NewVersionCmd

func NewVersionCmd(context *cmd.Context, clientVersion string) *Cmd

NewVersionCmd returns new version command with context and client version

func (*Cmd) Prepare

func (vc *Cmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*Cmd) Run

func (vc *Cmd) Run() error

Run runs command's logic

Jump to

Keyboard shortcuts

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