Ok, avec titre pour chacun
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user