Disallow empty input
This commit is contained in:
parent
bd41def541
commit
1583671f84
|
@ -1,7 +1,10 @@
|
|||
use crate::println;
|
||||
|
||||
pub fn evaluate(command: &str) {
|
||||
let res = command.trim();
|
||||
if res != "" {
|
||||
println!();
|
||||
println!();
|
||||
println!("[ {} ]", command.trim());
|
||||
println!("[ {:#?} ]", res);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue