Disallow empty input

This commit is contained in:
Yash Karandikar 2021-09-17 12:54:01 -05:00
parent bd41def541
commit 1583671f84

View file

@ -1,7 +1,10 @@
use crate::println;
pub fn evaluate(command: &str) {
println!();
println!();
println!("[ {} ]", command.trim());
let res = command.trim();
if res != "" {
println!();
println!();
println!("[ {:#?} ]", res);
}
}