Fix: CLI expanding secrets

This commit is contained in:
Daniel Hougaard
2024-03-12 10:55:30 +01:00
parent ad1cae6aac
commit 1b74fdb232

View File

@ -97,6 +97,11 @@ func RequireLogin() {
}
}
func IsLoggedIn() bool {
configFile, _ := GetConfigFile()
return configFile.LoggedInUserEmail != ""
}
func RequireServiceToken() {
serviceToken := os.Getenv(INFISICAL_TOKEN_NAME)
if serviceToken == "" {