DevForge
1

Create basic REPL

Build Shell from scratch

2 hours
Level 1 of 2

Build a read-eval-print loop that accepts and executes simple commands

Objectives
Complete these objectives to finish this level
  • Display shell prompt
  • Read user input
  • Execute basic commands like echo
  • Handle command not found errors
Test Cases
Your implementation should pass these tests
  • Shell displays prompt
  • Echo command works
  • Unknown commands show error
Hints
  • 💡 Use std::io for input/output
  • 💡 Split input into command and arguments
  • 💡 Use std::process::Command for execution
Challenge Progress
Level 1 of 250%