Restore command #593
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user