mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-30 02:28:48 -04:00
Restructure config and constants
This commit is contained in:
parent
66bb632a69
commit
1a9b33d738
18 changed files with 134 additions and 112 deletions
|
@ -1,7 +1,7 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/edgelesssys/constellation/internal/config"
|
||||
"github.com/edgelesssys/constellation/internal/constants"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
@ -12,7 +12,7 @@ func newVersionCmd() *cobra.Command {
|
|||
Long: `Display version of this CLI`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Printf("CLI Version: v%s \n", config.Version)
|
||||
cmd.Printf("CLI Version: v%s \n", constants.CliVersion)
|
||||
},
|
||||
}
|
||||
return cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue