mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-30 13:56:37 -04:00
Write and append to config file using ini package
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ func GenUpdate(targetLocation string, hideSecrets bool) {
|
||||
func editNote(baseNote []string) ([]string, bool) {
|
||||
tempFile := backend.CreateTempFile()
|
||||
defer os.Remove(tempFile.Name())
|
||||
editor := backend.ReadConfig([]string{"textEditor"}, "")[0]
|
||||
editor := backend.ParseConfig([]string{"textEditor"}, "")[0]
|
||||
|
||||
// write baseNote to tempFile (if it is not empty)
|
||||
if len(baseNote) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user