Remove 'eval' command.
Was introduced as a work-around to get some debugging info out of scripts, but tests do now provide the same capability with a better output and, do so automatically.
This commit is contained in:
@@ -178,14 +178,6 @@ where
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
CodeGenMode::Eval(func_name) => {
|
||||
let scripts = self
|
||||
.collect_scripts(&checked_modules, |def| matches!(def, Definition::Fn(..)))?;
|
||||
let results = self.eval_scripts(scripts, Some(func_name));
|
||||
self.event_listener
|
||||
.handle_event(Event::EvaluatingFunction { results });
|
||||
Ok(())
|
||||
}
|
||||
CodeGenMode::NoOp => Ok(()),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ pub struct Options {
|
||||
|
||||
pub enum CodeGenMode {
|
||||
Test(Option<String>),
|
||||
Eval(String),
|
||||
Build(bool),
|
||||
NoOp,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user