feature: Adds user command.

This commit is contained in:
greysoh 2024-05-08 11:22:51 -04:00
parent 2f7f2088cd
commit ee6556adb6
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
7 changed files with 157 additions and 6 deletions

View file

@ -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("~$ ");
}
}
});