Re-enable REPL support
This commit is contained in:
parent
2830a1befd
commit
e0a33e22ba
@ -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
4
src/cli/repl.rs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pub fn repl_command(_arguments: Vec<String>) {
|
||||||
|
println!("{}", super::get_version());
|
||||||
|
let _ = crate::repl::run();
|
||||||
|
}
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user