From 33af77b88c05b0fda5a8be3fd75da16acecf09f7 Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 21 Feb 2023 22:11:06 -0800 Subject: [PATCH] minor, finish bookmark functionality --- pkg/cmdrunner/cmdrunner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmdrunner/cmdrunner.go b/pkg/cmdrunner/cmdrunner.go index ff09bfc9..346d31cc 100644 --- a/pkg/cmdrunner/cmdrunner.go +++ b/pkg/cmdrunner/cmdrunner.go @@ -176,7 +176,7 @@ func init() { registerCmdFn("bookmarks:show", BookmarksShowCommand) - registerCmdFn("bookmark:edit", BookmarkEditCommand) + registerCmdFn("bookmark:set", BookmarkSetCommand) registerCmdFn("bookmark:delete", BookmarkDeleteCommand) registerCmdFn("_killserver", KillServerCommand) @@ -1924,9 +1924,9 @@ func BookmarksShowCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) return update, nil } -func BookmarkEditCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (sstore.UpdatePacket, error) { +func BookmarkSetCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (sstore.UpdatePacket, error) { if len(pk.Args) == 0 { - return nil, fmt.Errorf("/bookmark:delete requires one argument (bookmark id)") + return nil, fmt.Errorf("/bookmark:set requires one argument (bookmark id)") } bookmarkArg := pk.Args[0] bookmarkId, err := sstore.GetBookmarkIdByArg(ctx, bookmarkArg)