code: func (c config) flush() {
  	os.MkdirAll(filepath.Dir(c.path), 0755)
  
  	out, _ := json.MarshalIndent(c, "", "  ")
  	if err := ioutil.WriteFile(c.path, out, 0644); err != nil {
  		log.Warn("Failed to save puppeth configs", "file", c.path, "err", err)
  	}
  }
docs: // flush dumps the contents of config to disk.