Add function for evaluating shell commands

This commit is contained in:
Yash Karandikar 2021-09-17 12:50:46 -05:00
parent 07e6944428
commit 136bb8b8d8
2 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,7 @@
mod vga_buffer;
mod interrupts;
mod gdt;
mod shell;
use core::panic::PanicInfo;

7
src/shell.rs Normal file
View file

@ -0,0 +1,7 @@
use crate::println;
pub fn evaluate(command: &str) {
println!();
println!();
println!("[ {} ]", command.trim());
}