mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
14 lines
262 B
Text
14 lines
262 B
Text
|
|
namespace commands {
|
||
|
|
CommandResult parse_command(string input);
|
||
|
|
};
|
||
|
|
[Enum]
|
||
|
|
interface CommandResult {
|
||
|
|
Ok(ParsedCommand command);
|
||
|
|
Err(string error);
|
||
|
|
};
|
||
|
|
dictionary ParsedCommand {
|
||
|
|
string command_ref;
|
||
|
|
sequence<string> args;
|
||
|
|
record<string, string?> flags;
|
||
|
|
};
|