version

package
v0.18.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package version provides the defined version CLI commands for Vela.

Usage:

import "github.com/go-vela/cli/command/version"

Index

Constants

This section is empty.

Variables

View Source
var CommandVersion = &cli.Command{
	Name:        "version",
	Description: "Use this command to output version information.",
	Usage:       "Output version information",
	Action:      runVersion,
	Flags: []cli.Flag{

		&cli.StringFlag{
			EnvVars: []string{"VELA_OUTPUT", "STEP_OUTPUT"},
			Name:    internal.FlagOutput,
			Aliases: []string{"op"},
			Usage:   "format the output in json, spew, wide or yaml",
		},
	},
	CustomHelpTemplate: fmt.Sprintf(`%s
EXAMPLES:
  1. Output Vela version information
    $ {{.HelpName}} --api.addr https://vela.example.com
  2. Output Vela version information with JSON output
    $ {{.HelpName}} --output json

DOCUMENTATION:

  https://go-vela.github.io/docs/reference/cli/version/
`, cli.CommandHelpTemplate),
}

CommandVersion defines the command for returning version information on the CLI.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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