diff --git a/cmd/root.go b/cmd/root.go index 329497e89..940746cb0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -21,6 +21,7 @@ import ( "github.com/konstructio/kubefirst/cmd/k3s" "github.com/konstructio/kubefirst/cmd/vultr" "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/step" "github.com/spf13/cobra" ) @@ -73,6 +74,8 @@ func Execute() { // Before removing next line, please read ticket above. common.CheckForVersionUpdate() if err := rootCmd.Execute(); err != nil { + fmt.Println() + fmt.Fprintln(output, step.EmojiError, "Error:", err) fmt.Fprintln(output, "If a detailed error message was available, please make the necessary corrections before retrying.") fmt.Fprintln(output, "You can re-run the last command to try the operation again.") os.Exit(0) diff --git a/internal/launch/cmd.go b/internal/launch/cmd.go index 7246bfc8d..11f3251dd 100644 --- a/internal/launch/cmd.go +++ b/internal/launch/cmd.go @@ -187,9 +187,9 @@ func Up(ctx context.Context, additionalHelmFlags []string, inCluster, useTelemet _, _, err := shell.ExecShellReturnStrings( k3dClient, "kubeconfig", - "get", + "write", consoleClusterName, - "--output", + "-o", kubeconfigPath, ) if err != nil {