version

package
v0.24.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 4 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultVersionFormat = printer.FormatPlaintext

Functions

func PrintVersion

func PrintVersion(cxt *context.Context, opts Options, metadata pkgmgmt.PackageMetadata) error

PrintVersion prints the version based on the version flags using the binary's metadata. Suitable for any mixin or plugin to use to implement its version command.

Types

type Options

type Options struct {
	printer.PrintOptions
}

VersionOptions represent generic options for use by version commands

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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