ShowVersion prints the version number of the root Command.
(cmd *Command)
| 348 | |
| 349 | // ShowVersion prints the version number of the root Command. |
| 350 | func 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. |
| 356 | func DefaultPrintVersion(cmd *Command) { |