Skip to content

Commit

Permalink
feat: added echo in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Aug 27, 2024
1 parent 4d90cdd commit 92b4714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/editor/terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export default function Terminal() {

const commandHandlers: CommandHandlers = {
"pip install": async (input: string) => await pipInstall(input),
"echo ": async (input: string) =>
await setOutput(input.split(" ").slice(1).join(" ")),
pwd: getCwd,
cwd: getCwd,
clear: clearTerminal,
Expand Down

0 comments on commit 92b4714

Please sign in to comment.