Port to latest libmutton development version (account for massive refactor)

This commit is contained in:
2025-05-12 16:46:17 +00:00
parent 392af55b4c
commit 310c935d2d
9 changed files with 30 additions and 27 deletions
+2 -2
View File
@@ -9,14 +9,14 @@ import (
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/go-boilerplate/front"
"github.com/rwinkhart/libmutton/core"
"github.com/rwinkhart/libmutton/sync"
"github.com/rwinkhart/libmutton/syncclient"
)
// RenameCli renames an entry at oldLocationIncomplete to a new location (user input) on both the client and the server.
func RenameCli(oldLocationIncomplete string) {
// prompt user for new location and rename
newLocationIncomplete := front.Input("New location:")
sync.RenameRemoteFromClient(oldLocationIncomplete, newLocationIncomplete, false)
syncclient.RenameRemoteFromClient(oldLocationIncomplete, newLocationIncomplete, false)
// exit is done from sync.RenameRemoteFromClient
}