Re-enable REPL support

master
Araozu 2023-12-23 18:55:21 -05:00
parent 2830a1befd
commit e0a33e22ba
3 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
mod compile; mod compile;
mod empty; mod empty;
mod help; mod help;
mod repl;
mod types; mod types;
use types::CommandType; use types::CommandType;

4
src/cli/repl.rs Normal file
View File

@ -0,0 +1,4 @@
pub fn repl_command(_arguments: Vec<String>) {
println!("{}", super::get_version());
let _ = crate::repl::run();
}

View File

@ -16,6 +16,7 @@ impl CommandType {
match self { match self {
CommandType::Help => super::help::help_command(options), CommandType::Help => super::help::help_command(options),
CommandType::Compile => super::compile::compile_command(options), CommandType::Compile => super::compile::compile_command(options),
CommandType::Repl => super::repl::repl_command(options),
CommandType::None => super::empty::empty_command(options), CommandType::None => super::empty::empty_command(options),
_ => { _ => {
println!("Not implemented yet! {:?} {:?}", self, options); println!("Not implemented yet! {:?} {:?}", self, options);