fix(config): correct https-related fields in wizard (#334)

Fixes #333
This commit is contained in:
Ivan Shelepugin 2024-09-01 17:30:11 +03:00 committed by GitHub
parent 3b803b1192
commit a98e75432b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -270,7 +270,7 @@ func Wizard(app application.App) error {
Validate: pathIsReadableFile,
}
if promptTlsCertString, err := promptTlsCert.Run(); err == nil {
v.Set("tlsCert", util.Expand(promptTlsCertString))
v.Set("tls-cert", util.Expand(promptTlsCertString))
}
// TLS key
promptTlsKey := promptui.Prompt{
@ -279,7 +279,7 @@ func Wizard(app application.App) error {
Validate: pathIsReadableFile,
}
if promptTlsKeyString, err := promptTlsKey.Run(); err == nil {
v.Set("tlsKey", util.Expand(promptTlsKeyString))
v.Set("tls-key", util.Expand(promptTlsKeyString))
}
}
validateIsDir := func(input string) error {