Sync with latest libmutton development version; draft documentation for release v0.4.0

This commit is contained in:
2026-01-08 21:23:36 -05:00
parent 9af456590c
commit 32364717dc
8 changed files with 39 additions and 40 deletions
+2 -4
View File
@@ -18,8 +18,7 @@ import (
func RenameCli(oldVanityPath string) {
// prompt user for new location and rename
newVanityPath := front.Input("New location:")
err := syncclient.RenameRemote(oldVanityPath, newVanityPath)
if err != nil {
if err := syncclient.RenameRemote(oldVanityPath, newVanityPath); err != nil {
other.PrintError("Failed to rename entry: "+err.Error(), back.ErrorWrite)
}
@@ -131,8 +130,7 @@ func editNote(baseNote []string) ([]string, bool) {
cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin
cmd.Stderr = os.Stderr
err = cmd.Run()
if err != nil {
if err = cmd.Run(); err != nil {
panic(back.AnsiError + "Failed to write note with " + editor + back.AnsiReset) // panic is used to ensure the tempFile is removed, as per the defer statement
}