Ok, avec titre pour chacun

This commit is contained in:
Laurent Ulrich
2025-07-31 17:06:30 +02:00
parent 67700bcb42
commit 8877efaeca
7 changed files with 106 additions and 70 deletions

View File

@@ -18,7 +18,6 @@ type BlogConfiguration struct {
Title string
ShortName string
MailBox MailBoxConfiguration
WWWRoot string
}
func (configuration *BlogConfiguration) Prompt() error {
@@ -35,10 +34,12 @@ func (configuration *BlogConfiguration) Prompt() error {
return fmt.Errorf("short same invalid")
}
configuration.WWWRoot, err = prompt("Web Root directory", nil, fmt.Sprintf("/var/www/html/%s", configuration.ShortName), configuration.WWWRoot, false)
if err != nil {
return err
}
/*
configuration.WWWRoot, err = prompt("Web Root directory", nil, fmt.Sprintf("/var/www/html/%s", configuration.ShortName), configuration.WWWRoot, false)
if err != nil {
return err
}
*/
configuration.MailBox.Server, err = prompt("IMAP Server Hostname or IP", nil, "", configuration.MailBox.Server, false)
if err != nil {
return err
@@ -71,5 +72,6 @@ func (configuration *BlogConfiguration) Prompt() error {
if err != nil {
return err
}
return nil
}