mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
chore: move command parser into crates
This commit is contained in:
parent
7bd50db63e
commit
63a35c78ac
7 changed files with 0 additions and 0 deletions
13
crates/commands/src/commands.udl
Normal file
13
crates/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