Write and append to config file using ini package

This commit is contained in:
2024-06-05 14:56:17 -04:00
parent 1ec966b396
commit 295b126d3a
2 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -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 {