Write and append to config file using ini package

This commit is contained in:
2024-06-05 14:56:17 -04:00
parent 97a9c0a921
commit 4f9c57d6da
8 changed files with 77 additions and 42 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 {