version

package
v0.0.0-...-0d4cb65 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdVersion = &commands.Command{
	UsageLine: "version",
	Short:     "Prints the current Asana version",
	Long: `
Prints the current Asana, Asana and Go version alongside the platform information.
`,
	Run: versionCmd,
}

Functions

func GetAsanaVersion

func GetAsanaVersion() string

func GetGoVersion

func GetGoVersion() string

func InitBanner

func InitBanner(out io.Writer, in io.Reader)

InitBanner loads the banner and prints it to output All errors are ignored, the application will not print the banner in case of error.

func Now

func Now(layout string) string

Now returns the current local time in the specified layout

func ShowShortVersionBanner

func ShowShortVersionBanner()

ShowShortVersionBanner prints the short version banner.

Types

type RuntimeInfo

type RuntimeInfo struct {
	GoVersion       string
	GOOS            string
	GOARCH          string
	NumCPU          int
	GOPATH          string
	GOROOT          string
	Compiler        string
	AsanaCLIVersion string
	AsanaVersion    string
}

RuntimeInfo holds information about the current runtime.

Jump to

Keyboard shortcuts

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