pub async fn shell(prefix: &str) {
    loop {
        print!("{} ", prefix).await;
        match Command::parse(&read_line().await) {
            //TODO exit
            Ok(cmd) => cmd.exec().await,
            Err(Error::Empty) => {}
        }
    }
}
/// Starts a shell using `prefix` as the prefix for each line. This function
/// returns if the `exit` command is called.
Starts a shell using `prefix` as the prefix for each line. This function
returns if the `exit` command is called.
Starts a shell using ` prefix ` as the prefix for each line . This function returns if the ` exit ` command is called .
pub async fn shell(prefix: &str) {
    loop {
        print!("{} ", prefix).await;
        match Command::parse(&read_line().await) {
            //TODO exit
            Ok(cmd) => cmd.exec().await,
            Err(Error::Empty) => {}
        }
    }
}
pub async fn shell ( prefix : & str ) { loop { print ! ( " " prefix ) . await ; match Command :: parse ( & read_line ( ) . await ) { //TODO exit Ok ( cmd ) => cmd . exec ( ) . await , Err ( Error :: Empty ) => { } } } }
Starts a shell using `prefix` as the prefix for each line.
Starts a shell using ` prefix ` as the prefix for each line .
prefix
&str