mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-21 00:06:37 +00:00
Alteration for version passing
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
300d8b082a
commit
17845457e2
3
main.go
3
main.go
@ -6,6 +6,7 @@ import (
|
||||
"github.com/alexellis/faasd/cmd"
|
||||
)
|
||||
|
||||
// These values will be injected into these variables at the build time.
|
||||
var (
|
||||
// GitCommit Git Commit SHA
|
||||
GitCommit string
|
||||
@ -14,7 +15,7 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := cmd.Execute(GitCommit, Version); err != nil {
|
||||
if err := cmd.Execute(Version, GitCommit); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
|
Reference in New Issue
Block a user