mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
Sync with latest libmutton development version
This commit is contained in:
+2
-2
@@ -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).
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user