the prompt and command input works but the history does not

This commit is contained in:
2025-02-18 17:36:54 -05:00
parent 578aebcae1
commit 129d0ff6b4
7 changed files with 150 additions and 122 deletions

View File

@ -0,0 +1,14 @@
function trim(stdin: string): string {
const trimmed_str: string[] = []
stdin.split(" ").forEach(s => { if (s !== "") { trimmed_str.push(s) } })
return trimmed_str.join(" ")
}
function to_args(trimmed_str: string): string[] {
return trimmed_str.split(" ")
}
export {
trim,
to_args
}