MCPcopy
hub / github.com/urfave/cli / ShowVersion

Function ShowVersion

help.go:350–353  ·  help.go::ShowVersion

ShowVersion prints the version number of the root Command.

(cmd *Command)

Source from the content-addressed store, hash-verified

348
349// ShowVersion prints the version number of the root Command.
350func ShowVersion(cmd *Command) {
351 tracef("showing version via VersionPrinter (cmd=%[1]q)", cmd.Name)
352 VersionPrinter(cmd)
353}
354
355// DefaultPrintVersion is the default implementation of VersionPrinter.
356func DefaultPrintVersion(cmd *Command) {

Callers 2

runMethod · 0.85

Calls 1

tracefFunction · 0.85

Tested by 1