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:
@@ -1,27 +0,0 @@
|
||||
use aiken_project::options::{CodeGenMode, Options};
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(clap::Args)]
|
||||
/// Evaluate a chosen function with no argument.
|
||||
pub struct Args {
|
||||
/// Path to project
|
||||
#[clap(short, long)]
|
||||
directory: Option<PathBuf>,
|
||||
|
||||
/// Evaluate the given function
|
||||
#[clap(short, long)]
|
||||
function_name: String,
|
||||
}
|
||||
|
||||
pub fn exec(
|
||||
Args {
|
||||
directory,
|
||||
function_name,
|
||||
}: Args,
|
||||
) -> miette::Result<()> {
|
||||
crate::with_project(directory, |p| {
|
||||
p.compile(Options {
|
||||
code_gen_mode: CodeGenMode::Eval(function_name.clone()),
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
pub mod build;
|
||||
pub mod check;
|
||||
pub mod error;
|
||||
pub mod eval;
|
||||
pub mod fmt;
|
||||
pub mod lsp;
|
||||
pub mod new;
|
||||
|
||||
Reference in New Issue
Block a user