feature: Adds user command.
This commit is contained in:
parent
2f7f2088cd
commit
ee6556adb6
7 changed files with 157 additions and 6 deletions
|
@ -108,8 +108,8 @@ server.on("connection", client => {
|
|||
continue;
|
||||
}
|
||||
|
||||
await command.run(argv, println, axios, token);
|
||||
stream.write(`~$ `);
|
||||
await command.run(argv, println, axios, token, (disableEcho) => readFromKeyboard(stream, disableEcho));
|
||||
stream.write("~$ ");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue