Documentation
¶
Overview ¶
Package cmdversion renders version metadata supplied by the build domain.
Index ¶
- func New(snapshot func() buildinfo.Report) *cobra.Command
- func NewWithStale(snapshot func() buildinfo.Report, ...) *cobra.Command
- func Write(out io.Writer, info buildinfo.Report, asJSON bool) error
- func WriteBare(out io.Writer, version string) error
- func WriteWithStale(out, warn io.Writer, info buildinfo.Report, stale []stalewb.Binary, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithStale ¶
func NewWithStale(snapshot func() buildinfo.Report, scan func(context.Context, string) []stalewb.Binary) *cobra.Command
NewWithStale is New plus a scan for older wb copies on PATH. scan receives the running version; nil skips it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.