Updated readme and examples

This commit is contained in:
noccy committed 2024-02-28 12:44:09 +01:00
1 parent 14f1d7f0cf
commit 24b7a79827
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ $commands->on('command', function ($command, $args, $shell) {
$shell->write("Arguments passed: ".json_encode($args)."\n");
});
$shell->on('prompt', function ($shell) {
$shell->setPrompt(date(">> "));
$shell->on('prompt', function ($shell) {
$shell->setPrompt(">> ");
});
$shell->on('input', $commands);