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