mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
Set Version info in rootcmd
This commit is contained in:
parent
4975d53b4d
commit
4a870ea137
2 changed files with 11 additions and 1 deletions
|
@ -120,3 +120,7 @@ func initConfig() {
|
|||
fmt.Fprintln(os.Stderr, "Getting Private Key File Flag:", err)
|
||||
}
|
||||
}
|
||||
|
||||
func SetVersionInfo(version, commit, date string) {
|
||||
rootCmd.Version = fmt.Sprintf("%s (Built on %s from Git SHA %s)", version, date, commit)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue