mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: 'xgroup help' should show help message (#1159)
Along the way, performs small cleanups in command handling code. XGROUP HELP is special because it falls out of Dragonfly command taxonomy design, where a command name determines where its key is located. All other XGROUP subcommands expect to see XGROUP <subcmd> <key> and this one obviously does not need any key. I fix it by working around the issue and introduce a dedicated dummy command for this combination. Fixes #854. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
de0b73312a
commit
418f529b0e
10 changed files with 110 additions and 72 deletions
|
@ -116,7 +116,9 @@ class Service : public facade::ServiceInterface {
|
|||
};
|
||||
|
||||
// Return false if command is invalid and reply with error.
|
||||
bool VerifyCommand(const CommandId* cid, CmdArgList args, facade::ConnectionContext* cntx);
|
||||
bool VerifyCommand(const CommandId* cid, CmdArgList args, ConnectionContext* cntx);
|
||||
|
||||
const CommandId* FindCmd(CmdArgList args) const;
|
||||
|
||||
void EvalInternal(const EvalArgs& eval_args, Interpreter* interpreter, ConnectionContext* cntx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue