Sync with latest libmutton development version

This commit is contained in:
2025-12-11 20:14:19 -05:00
parent 19dd1fd685
commit fb70b38dc3
5 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -18,12 +18,12 @@ import (
func RenameCli(oldVanityPath string) {
// prompt user for new location and rename
newVanityPath := front.Input("New location:")
err := syncclient.RenameRemoteFromClient(oldVanityPath, newVanityPath)
err := syncclient.RenameRemote(oldVanityPath, newVanityPath)
if err != nil {
other.PrintError("Failed to rename entry: "+err.Error(), back.ErrorWrite)
}
// exit is done from sync.RenameRemoteFromClient
// exit is done from sync.RenameRemote
}
// EditEntryField edits a field of an entry at realPath (user input).
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/go-boilerplate/front"
"github.com/rwinkhart/go-boilerplate/other"
"github.com/rwinkhart/go-boilerplate/stringy"
"github.com/rwinkhart/libmutton/core"
"github.com/rwinkhart/libmutton/synccycles"
)
// inputPasswordGen prompts the user for password generation parameters and returns a generated password as a string.
@@ -24,7 +24,7 @@ func inputPasswordGen() string {
complexity = 0.2 // (ultra) complex
// 2 and 3 indicate complex and ultra complex charsets, respectively
}
return synccycles.StringGen(passLength, complexity, passCharset)
return stringy.StringGen(passLength, complexity, passCharset)
}
// writeEntryCLI writes an entry to realPath and previews it (errors if no data is supplied).