Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format is used to display version information about a Tympan application. For an application named "myapp" with a version of "1.2.3", a build date of "2022/01/31", a commit hash of "f1976f1", and a source url of https://github.com/myuser/myapp, it will return:
` myapp 1.2.3 f1976f1 2022/01/31 https://github.com/myuser/myapp/releases/tag/1.2.3 `
Types ¶
type VersionCommand ¶
VersionCommand contains all the necessary information to determine and display a Tympan application's version.
func (*VersionCommand) CreateCommand ¶
func (v *VersionCommand) CreateCommand() *cobra.Command
CreateCommand instantiates a cobra command to display the version of the Tympan application.
type VersionCommander ¶
The Version command is reimplementable and must return a valid cobra Command.
Click to show internal directories.
Click to hide internal directories.