Skip to content

Commit

Permalink
Manicode.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jahooma committed Jul 9, 2024
1 parent 7425cca commit c0403a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/scripts/manicode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
# Run the TypeScript file using ts-node and pass all arguments
ts-node "manicode.ts" "$@"
2 changes: 1 addition & 1 deletion backend/scripts/manicode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ User: ${firstPrompt}
await new Promise<void>((resolve) => {
function promptUser() {
rl.question(
'Enter your prompt (or type "quit" or "q"): ',
'Enter your prompt (or type "quit" or "q"):\n>',
async (userInput: string) => {
const exitWords = ['exit', 'quit', 'q']
if (exitWords.includes(userInput.trim().toLowerCase())) {
Expand Down

0 comments on commit c0403a5

Please sign in to comment.