relative values, types check

This commit is contained in:
MihailRis
2024-05-10 16:05:46 +03:00
parent 17426705ae
commit b38128ef39
6 changed files with 185 additions and 19 deletions
+8
View File
@@ -59,6 +59,14 @@ namespace cmd {
return &args[index];
}
Argument* getArgument(const std::string& keyword) {
auto found = kwargs.find(keyword);
if (found == kwargs.end()) {
return nullptr;
}
return &found->second;
}
dynamic::Value execute(const Prompt& prompt) {
return executor(prompt.args, prompt.kwargs);
}