version

package
v0.0.0-...-73c7f1b Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command represents the version command.

func New

func New() *Command

New creates a new version command.

func (*Command) Execute

func (c *Command) Execute(cmd *cobra.Command, args []string)

Execute represents the cobra run method.

func (*Command) New

func (c *Command) New() *cobra.Command

New creates a new cobra command for the version command.

func (*Command) SetGitCommit

func (c *Command) SetGitCommit(gitCommit string)

SetGitCommit sets the git commit for the version command to be displayed.

func (*Command) SetGoArch

func (c *Command) SetGoArch(goArch string)

SetGoArch sets the go architecture for the version command to be displayed.

func (*Command) SetGoOS

func (c *Command) SetGoOS(goOS string)

SetGoOS sets the go OS for the version command to be displayed.

func (*Command) SetGoVersion

func (c *Command) SetGoVersion(goVersion string)

SetGoVersion sets the go version for the version command to be displayed.

func (*Command) SetProjectVersion

func (c *Command) SetProjectVersion(projectVersion string)

SetProjectVersion sets the project version for the version command to be displayed.

Jump to

Keyboard shortcuts

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