init rust command parser

This commit is contained in:
alyssa 2024-09-13 16:02:30 +09:00
parent 32a6e97342
commit c3cc5c9d03
15 changed files with 968 additions and 27 deletions

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