refactor(cmd): add backup command to cli

This commit is contained in:
Tom Neuber 2024-07-27 18:56:09 +02:00
parent 577f821b9d
commit 62b316b5ef
Signed by: tom
GPG key ID: F17EFE4272D89FF6
8 changed files with 357 additions and 193 deletions

View file

@ -0,0 +1,17 @@
package version
import (
"fmt"
)
var (
version = "undefined"
versionPrerelease = "dev" //nolint:gochecknoglobals // this has to be a variable to set the version during release.
)
func Version() string {
if versionPrerelease != "" {
return fmt.Sprintf("%s-%s", version, versionPrerelease)
}
return version
}