mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
increase version and fix infisical token name
This commit is contained in:
@@ -15,7 +15,7 @@ var rootCmd = &cobra.Command{
|
|||||||
Short: "Infisical CLI is used to inject environment variables into any process",
|
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.`,
|
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},
|
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.
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ var runCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var envsFromApi []models.SingleEnvironmentVariable
|
var envsFromApi []models.SingleEnvironmentVariable
|
||||||
infisicalToken := os.Getenv(util.INFISICAL_SERVICE_TOKEN)
|
infisicalToken := os.Getenv(util.INFISICAL_TOKEN_NAME)
|
||||||
if infisicalToken == "" {
|
if infisicalToken == "" {
|
||||||
hasUserLoggedInbefore, loggedInUserEmail, err := util.IsUserLoggedIn()
|
hasUserLoggedInbefore, loggedInUserEmail, err := util.IsUserLoggedIn()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const (
|
|||||||
CONFIG_FILE_NAME = "infisical-config.json"
|
CONFIG_FILE_NAME = "infisical-config.json"
|
||||||
CONFIG_FOLDER_NAME = ".infisical"
|
CONFIG_FOLDER_NAME = ".infisical"
|
||||||
INFISICAL_WORKSPACE_CONFIG_FILE_NAME = ".infisical.json"
|
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"
|
var INFISICAL_URL = "https://app.infisical.com/api"
|
||||||
|
|||||||
Reference in New Issue
Block a user