Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept lowercase SCRIPT subcommands #987

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libs/server/Resp/CmdStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ static partial class CmdStrings
public static ReadOnlySpan<byte> HELP => "HELP"u8;
public static ReadOnlySpan<byte> help => "help"u8;
public static ReadOnlySpan<byte> PING => "PING"u8;
public static ReadOnlySpan<byte> SCRIPT => "SCRIPT"u8;
public static ReadOnlySpan<byte> HELLO => "HELLO"u8;
public static ReadOnlySpan<byte> TIME => "TIME"u8;
public static ReadOnlySpan<byte> RESET => "RESET"u8;
Expand Down Expand Up @@ -256,6 +257,7 @@ static partial class CmdStrings
public const string GenericErrUnknownOptionConfigSet = "ERR Unknown option or number of arguments for CONFIG SET - '{0}'";
public const string GenericErrUnknownOption = "ERR Unknown option or number of arguments for '{0}' command";
public const string GenericErrUnknownSubCommand = "ERR unknown subcommand '{0}'. Try {1} HELP";
public const string GenericErrUnknownSubCommandNoHelp = "ERR unknown subcommand '{0}'.";
public const string GenericErrWrongNumArgsTxn =
"ERR Invalid number of parameters to stored proc {0}, expected {1}, actual {2}";
public const string GenericSyntaxErrorOption = "ERR Syntax error in {0} option '{1}'";
Expand Down Expand Up @@ -316,6 +318,8 @@ static partial class CmdStrings
// subcommand parsing strings
public static ReadOnlySpan<byte> CAT => "CAT"u8;
public static ReadOnlySpan<byte> DELUSER => "DELUSER"u8;
public static ReadOnlySpan<byte> EXISTS => "EXISTS"u8;
public static ReadOnlySpan<byte> FLUSH => "FLUSH"u8;
public static ReadOnlySpan<byte> LOAD => "LOAD"u8;
public static ReadOnlySpan<byte> LOADCS => "LOADCS"u8;
public static ReadOnlySpan<byte> SETUSER => "SETUSER"u8;
Expand Down
Loading