From 16061a0b8dd0b6fb19e04b3de51431b8059ee564 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sun, 20 Nov 2022 22:50:40 -0500 Subject: [PATCH] increase version and fix infisical token name --- cli/packages/cmd/root.go | 2 +- cli/packages/cmd/run.go | 2 +- cli/packages/util/common.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.go index 1fa6e5abc0..dfb1500721 100644 --- a/cli/packages/cmd/root.go +++ b/cli/packages/cmd/root.go @@ -15,7 +15,7 @@ var rootCmd = &cobra.Command{ Short: "Infisical CLI is used to inject environment variables into any process", Long: `Infisical is a simple, end-to-end encrypted service that enables teams to sync and manage their environment variables across their development life cycle.`, CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true}, - Version: "1.0.0", + Version: "1.0.1", } // Execute adds all child commands to the root command and sets flags appropriately. diff --git a/cli/packages/cmd/run.go b/cli/packages/cmd/run.go index 89dda01623..1c07f06c8c 100644 --- a/cli/packages/cmd/run.go +++ b/cli/packages/cmd/run.go @@ -41,7 +41,7 @@ var runCmd = &cobra.Command{ } var envsFromApi []models.SingleEnvironmentVariable - infisicalToken := os.Getenv(util.INFISICAL_SERVICE_TOKEN) + infisicalToken := os.Getenv(util.INFISICAL_TOKEN_NAME) if infisicalToken == "" { hasUserLoggedInbefore, loggedInUserEmail, err := util.IsUserLoggedIn() if err != nil { diff --git a/cli/packages/util/common.go b/cli/packages/util/common.go index 05b3497d25..37c8819941 100644 --- a/cli/packages/util/common.go +++ b/cli/packages/util/common.go @@ -9,7 +9,7 @@ const ( CONFIG_FILE_NAME = "infisical-config.json" CONFIG_FOLDER_NAME = ".infisical" INFISICAL_WORKSPACE_CONFIG_FILE_NAME = ".infisical.json" - INFISICAL_SERVICE_TOKEN = "INFISICAL_SERVICE_TOKEN" + INFISICAL_TOKEN_NAME = "INFISICAL_TOKEN" ) var INFISICAL_URL = "https://app.infisical.com/api"