chore: fmt
This commit is contained in:
@@ -30,7 +30,7 @@ enum Command {
|
|||||||
#[clap(flatten)]
|
#[clap(flatten)]
|
||||||
source: ExprSource,
|
source: ExprSource,
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
silent: bool
|
silent: bool,
|
||||||
},
|
},
|
||||||
Eval {
|
Eval {
|
||||||
#[clap(flatten)]
|
#[clap(flatten)]
|
||||||
@@ -180,7 +180,7 @@ fn main() -> Result<()> {
|
|||||||
)?;
|
)?;
|
||||||
|
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Command::Compile { source , silent } => run_compile(&mut context, source, silent),
|
Command::Compile { source, silent } => run_compile(&mut context, source, silent),
|
||||||
Command::Eval { source } => run_eval(&mut context, source),
|
Command::Eval { source } => run_eval(&mut context, source),
|
||||||
Command::Repl => run_repl(&mut context),
|
Command::Repl => run_repl(&mut context),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,14 +192,11 @@ eval_okay_test!(
|
|||||||
eval_okay_test!(partition);
|
eval_okay_test!(partition);
|
||||||
eval_okay_test!(path);
|
eval_okay_test!(path);
|
||||||
eval_okay_test!(pathexists);
|
eval_okay_test!(pathexists);
|
||||||
eval_okay_test!(
|
eval_okay_test!(path_string_interpolation, || {
|
||||||
path_string_interpolation,
|
|
||||||
|| {
|
|
||||||
unsafe {
|
unsafe {
|
||||||
std::env::set_var("HOME", "/fake-home");
|
std::env::set_var("HOME", "/fake-home");
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
);
|
|
||||||
eval_okay_test!(patterns);
|
eval_okay_test!(patterns);
|
||||||
eval_okay_test!(print);
|
eval_okay_test!(print);
|
||||||
eval_okay_test!(readDir);
|
eval_okay_test!(readDir);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ mod findfile;
|
|||||||
mod free_globals;
|
mod free_globals;
|
||||||
mod functions;
|
mod functions;
|
||||||
mod io_operations;
|
mod io_operations;
|
||||||
|
mod lang;
|
||||||
mod numeric_types;
|
mod numeric_types;
|
||||||
mod operators;
|
mod operators;
|
||||||
mod path_operations;
|
mod path_operations;
|
||||||
@@ -13,5 +14,4 @@ mod regex;
|
|||||||
mod string_context;
|
mod string_context;
|
||||||
mod thunk_scope;
|
mod thunk_scope;
|
||||||
mod to_string;
|
mod to_string;
|
||||||
mod lang;
|
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|||||||
Reference in New Issue
Block a user