refactor(cmd): add backup command to cli
This commit is contained in:
parent
577f821b9d
commit
62b316b5ef
8 changed files with 357 additions and 193 deletions
17
internal/version/version.go
Normal file
17
internal/version/version.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue