summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/config.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-08-25 14:41:24 +0200
committerMartin Polden <mpolden@mpolden.no>2021-08-25 18:56:03 +0200
commit240fb94f82b8a59e70135deee6bc870e8ced2673 (patch)
tree1fc1fc46213856ff2565e4383d2dbb303d26f174 /client/go/cmd/config.go
parentdfa5970405e3f9182bed4fc9f4422eb81aae13d2 (diff)
Implement vespa cert
Diffstat (limited to 'client/go/cmd/config.go')
-rw-r--r--client/go/cmd/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/go/cmd/config.go b/client/go/cmd/config.go
index 6d25f33d07c..9435a97d999 100644
--- a/client/go/cmd/config.go
+++ b/client/go/cmd/config.go
@@ -5,11 +5,12 @@
package cmd
import (
+ "os"
+ "path/filepath"
+
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/vespa-engine/vespa/util"
- "os"
- "path/filepath"
)
func init() {
@@ -25,6 +26,7 @@ var configCmd = &cobra.Command{
}
func readConfig() {
+ // TODO: Make ~/.vespa a directory so that we can put other files there as well
home, err := os.UserHomeDir()
configName := ".vespa"
configType := "yaml"