mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 00:16:46 +00:00
25 lines
460 B
Go
25 lines
460 B
Go
package pkg
|
|
|
|
var (
|
|
// GitCommit Git Commit SHA
|
|
GitCommit string
|
|
// Version version of the CLI
|
|
Version string
|
|
)
|
|
|
|
// GetVersion get latest version
|
|
func GetVersion() string {
|
|
if len(Version) == 0 {
|
|
return "dev"
|
|
}
|
|
return Version
|
|
}
|
|
|
|
// Logo for version and root command
|
|
const Logo = ` __ _
|
|
/ _| __ _ __ _ ___ __| |
|
|
| |_ / _` + "`" + ` |/ _` + "`" + ` / __|/ _` + "`" + ` |
|
|
| _| (_| | (_| \__ \ (_| |
|
|
|_| \__,_|\__,_|___/\__,_|
|
|
`
|