mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-22 06:43:28 +00:00
Pass version from main
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
17a5e2c625
commit
300d8b082a
9
main.go
9
main.go
@ -6,8 +6,15 @@ import (
|
||||
"github.com/alexellis/faasd/cmd"
|
||||
)
|
||||
|
||||
var (
|
||||
// GitCommit Git Commit SHA
|
||||
GitCommit string
|
||||
// Version version of the CLI
|
||||
Version string
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := cmd.Execute(); err != nil {
|
||||
if err := cmd.Execute(GitCommit, Version); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
|
Reference in New Issue
Block a user