Add waiting for changes to config file
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-06-21 16:50:49 +02:00
parent 63d84e4f7a
commit 9e96a9ee01
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 1 deletions

View File

@ -103,7 +103,12 @@ func Restore(filename string) error {
_ = cfgr.Close()
_ = outFile.Close()
log.Info("Restored config file.")
log.Infof("The config file has been restored to '%s'.", configFile.Name)
log.Infof("You can now make changes to it, hit enter when you're done.")
if _, err := bufio.NewReader(os.Stdin).ReadString('\n'); err != nil {
return fmt.Errorf("could not read from stdin: %s", err)
}
log.Info("Restoring...")
// Init the configFile again since the restored configuration is most likely different from the one before
initialize.LightInit()