mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-21 14:23:34 +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
11
cmd/root.go
11
cmd/root.go
@ -13,7 +13,16 @@ func init() {
|
||||
rootCommand.AddCommand(installCmd)
|
||||
}
|
||||
|
||||
func Execute() error {
|
||||
var (
|
||||
// GitCommit Git Commit SHA
|
||||
GitCommit string
|
||||
// Version version of the CLI
|
||||
Version string
|
||||
)
|
||||
|
||||
func Execute(gitCommit, version string) error {
|
||||
GitCommit = gitCommit
|
||||
Version = version
|
||||
|
||||
if err := rootCommand.Execute(); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user