version

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Example (VersionInfo_json)
display.Print(&respVersionInfo{
	Info: &versionInfo{
		Version:    "0.0.0",
		GitCommit:  "00000000",
		BuildTime:  "0001-01-01T00:00:00Z",
		APIVersion: "0.0.0",
		GoVersion:  "unknown",
		Os:         "unknown",
		Arch:       "unknown",
	},
}, nil, "json")
Output:

{
  "result": {
    "version": "0.0.0",
    "git_commit": "00000000",
    "build_time": "0001-01-01T00:00:00Z",
    "api_version": "0.0.0",
    "go_version": "unknown",
    "os": "unknown",
    "arch": "unknown"
  },
  "error": ""
}
Example (VersionInfo_text)
display.Print(&respVersionInfo{
	Info: &versionInfo{
		Version:   "0.0.0",
		GitCommit: "00000000",

		BuildTime:  "0001-01-01T00:00:00Z",
		APIVersion: "0.0.0",
		GoVersion:  "unknown",
		Os:         "unknown",
		Arch:       "unknown",
	},
}, nil, "text")
//display.PrettyPrint(msg, "text")
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionCmd

func NewVersionCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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