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 ¶
Click to show internal directories.
Click to hide internal directories.