version

package
v2.0.0-snapshot...-58e3a78 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = models.Command{
	Name:      "version",
	ShortHelp: "Output the version and quit",
	LongHelp: "`version` prints out the current CLI version as well as the architecture it was built for (64-bit or 32-bit). " +
		"This is useful to see if you have the latest version of the CLI and when working with Catalyze support engineers to ensure you have the correct CLI installed. " +
		"Here is a sample command\n\n" +
		"```\ncatalyze version\n```",
	CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) {
		return func(cmd *cli.Cmd) {
			cmd.Action = func() {
				err := CmdVersion()
				if err != nil {
					logrus.Fatal(err.Error())
				}
			}
		}
	},
}

Cmd is the contract between the user and the CLI. This specifies the command name, arguments, and required/optional arguments and flags for the command.

Functions

func CmdVersion

func CmdVersion() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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