PluralKit/crates/commands/src/commands.udl

13 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;
};