superxcgm / xcShell

Your own shell
1 stars 1 forks source link

Split user input into command and args by space #9

Closed superxcgm closed 3 years ago

superxcgm commented 3 years ago

Epic: Process

Description: Before execute user command, we usually need to split input line into command and args. The goal of this card is to split user input line into two part: 1. command name 2. arg list. You just need to consider space as delimiter.

AC: Given: User input echo hello world When: Press enter Then: Line parsed into command echo, and args ['hello', 'world']