
Removing octant reference for now, it will need to be later embedded into the ui Working on this will require these commands to be run in the web directory: npm install npm install --save-dev electron behind a proxy npm install may have issues, this might work: npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY= http://<proxy>:<port> npm install -D electron@latest Change-Id: I5bd054a767fe8ab7b0461a16eced1921c4de11f6
36 lines
629 B
Go
36 lines
629 B
Go
/*
|
|
Copyright (c) 2019 the Octant contributors. All Rights Reserved.
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
// version will be overridden by ldflags supplied in Makefile
|
|
version = "(dev-version)"
|
|
)
|
|
|
|
func newVersionCmd() *cobra.Command {
|
|
versionCmd := &cobra.Command{
|
|
Use: "version",
|
|
Short: "Show version",
|
|
Long: "Version for airshipui binary",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
out := cmd.OutOrStdout()
|
|
|
|
fmt.Fprintln(out, "airshipui version", Version())
|
|
},
|
|
}
|
|
return versionCmd
|
|
}
|
|
|
|
func Version() string {
|
|
return version
|
|
}
|