api fixes
parent
d99d1829b0
commit
bb9831479b
4
main.cc
4
main.cc
|
@ -640,6 +640,10 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
os.register_rulecmds();
|
os.register_rulecmds();
|
||||||
|
|
||||||
|
os.new_command("echo", "C", [&os](CsValueRange args, CsValue &) {
|
||||||
|
os.get_out().writeln(args[0].get_strr());
|
||||||
|
});
|
||||||
|
|
||||||
os.new_command("shell", "C", [&os, &tpool](
|
os.new_command("shell", "C", [&os, &tpool](
|
||||||
CsValueRange args, CsValue &res
|
CsValueRange args, CsValue &res
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue