mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
init rust command parser
This commit is contained in:
parent
32a6e97342
commit
c3cc5c9d03
15 changed files with 968 additions and 27 deletions
13
lib/commands/src/commands.udl
Normal file
13
lib/commands/src/commands.udl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue