Minor changes

This commit is contained in:
quinton11
2023-04-19 19:49:14 +00:00
parent d4206cdbd8
commit 3add40bfbd
2 changed files with 3 additions and 6 deletions

View File

@@ -340,7 +340,7 @@ func askForDomain() error {
domainPrompt := promptui.Prompt{
Label: "Domain",
Validate: urlValidation,
Default: "Example - https://my-domain-example.com",
Default: "Example - https://my-self-hosted-instance.com/api",
}
domain, err := domainPrompt.Run()
@@ -349,7 +349,7 @@ func askForDomain() error {
}
//set api url
config.INFISICAL_URL = fmt.Sprintf("%s/api", domain)
config.INFISICAL_URL = domain
//return nil
return nil
}

View File

@@ -2,7 +2,6 @@ package cmd
import (
"errors"
"fmt"
"net/url"
"github.com/Infisical/infisical-merge/packages/config"
@@ -223,7 +222,7 @@ func NewDomainPrompt() (string, error) {
domainPrompt := promptui.Prompt{
Label: "New Domain",
Validate: urlValidation,
Default: "Example - https://my-domain-example.com",
Default: "Example - https://my-self-hosted-instance.com/api",
}
domain, err := domainPrompt.Run()
@@ -231,8 +230,6 @@ func NewDomainPrompt() (string, error) {
return "", err
}
domain = fmt.Sprintf("%s/api", domain)
return domain, nil
}