mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Minor changes
This commit is contained in:
@@ -340,7 +340,7 @@ func askForDomain() error {
|
|||||||
domainPrompt := promptui.Prompt{
|
domainPrompt := promptui.Prompt{
|
||||||
Label: "Domain",
|
Label: "Domain",
|
||||||
Validate: urlValidation,
|
Validate: urlValidation,
|
||||||
Default: "Example - https://my-domain-example.com",
|
Default: "Example - https://my-self-hosted-instance.com/api",
|
||||||
}
|
}
|
||||||
|
|
||||||
domain, err := domainPrompt.Run()
|
domain, err := domainPrompt.Run()
|
||||||
@@ -349,7 +349,7 @@ func askForDomain() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set api url
|
//set api url
|
||||||
config.INFISICAL_URL = fmt.Sprintf("%s/api", domain)
|
config.INFISICAL_URL = domain
|
||||||
//return nil
|
//return nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/Infisical/infisical-merge/packages/config"
|
"github.com/Infisical/infisical-merge/packages/config"
|
||||||
@@ -223,7 +222,7 @@ func NewDomainPrompt() (string, error) {
|
|||||||
domainPrompt := promptui.Prompt{
|
domainPrompt := promptui.Prompt{
|
||||||
Label: "New Domain",
|
Label: "New Domain",
|
||||||
Validate: urlValidation,
|
Validate: urlValidation,
|
||||||
Default: "Example - https://my-domain-example.com",
|
Default: "Example - https://my-self-hosted-instance.com/api",
|
||||||
}
|
}
|
||||||
|
|
||||||
domain, err := domainPrompt.Run()
|
domain, err := domainPrompt.Run()
|
||||||
@@ -231,8 +230,6 @@ func NewDomainPrompt() (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
domain = fmt.Sprintf("%s/api", domain)
|
|
||||||
|
|
||||||
return domain, nil
|
return domain, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user