From 1470772a00faad4a5b4130e0fe47513e5618e31d Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 11 Jul 2026 11:57:44 +0200 Subject: refactored some more commands to work with the new command registry --- pkg/commands/command-registry.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'pkg/commands/command-registry.go') diff --git a/pkg/commands/command-registry.go b/pkg/commands/command-registry.go index 0193da1..eaefc65 100644 --- a/pkg/commands/command-registry.go +++ b/pkg/commands/command-registry.go @@ -55,4 +55,24 @@ var Registry = map[string]CommandDef{ ExtractKeys: AllSubsequentKeys, Execute: Del, }, + "EXISTS": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Exists, + }, + "INCR": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Incr, + }, + "DECR": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Decr, + }, + "RENAME": { + MinArgs: 3, + ExtractKeys: SingleKey, + Execute: Rename, + }, } \ No newline at end of file -- cgit v1.2.3