Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 7 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{
			Sources: cli.EnvVars("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
    $ {{.FullName}}
  2. Output Vela version information with JSON output
    $ {{.FullName}} --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