mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
update prompt selections to const
This commit is contained in:
@@ -284,7 +284,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func DomainOverridePrompt() (bool, error) {
|
func DomainOverridePrompt() (bool, error) {
|
||||||
var (
|
const (
|
||||||
PRESET = "Use Domain"
|
PRESET = "Use Domain"
|
||||||
OVERRIDE = "Change Domain"
|
OVERRIDE = "Change Domain"
|
||||||
)
|
)
|
||||||
@@ -306,7 +306,7 @@ func DomainOverridePrompt() (bool, error) {
|
|||||||
|
|
||||||
func askForDomain() error {
|
func askForDomain() error {
|
||||||
//query user to choose between Infisical cloud or self hosting
|
//query user to choose between Infisical cloud or self hosting
|
||||||
var (
|
const (
|
||||||
INFISICAL_CLOUD = "Infisical Cloud"
|
INFISICAL_CLOUD = "Infisical Cloud"
|
||||||
SELF_HOSTING = "Self Hosting"
|
SELF_HOSTING = "Self Hosting"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ func WriteInitalConfig(userCredentials *models.UserCredentials) error {
|
|||||||
}
|
}
|
||||||
//if empty or if email not in loggedinUsers
|
//if empty or if email not in loggedinUsers
|
||||||
if len(existingConfigFile.LoggedInUsers) == 0 || !ConfigContainsEmail(existingConfigFile.LoggedInUsers, userCredentials.Email) {
|
if len(existingConfigFile.LoggedInUsers) == 0 || !ConfigContainsEmail(existingConfigFile.LoggedInUsers, userCredentials.Email) {
|
||||||
|
|
||||||
existingConfigFile.LoggedInUsers = append(existingConfigFile.LoggedInUsers, loggedInUser)
|
existingConfigFile.LoggedInUsers = append(existingConfigFile.LoggedInUsers, loggedInUser)
|
||||||
} else {
|
} else {
|
||||||
//if exists update domain of loggedin users
|
//if exists update domain of loggedin users
|
||||||
|
|||||||
Reference in New Issue
Block a user