version

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 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 *portercontext.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