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

      Source Files