fix: broken rules for new nushell version

This commit is contained in:
iff 2024-11-18 13:38:21 +01:00
parent 8f9aac6bdc
commit a71486e956
3 changed files with 8 additions and 3 deletions

View file

@ -142,6 +142,7 @@ fn eval_condition(
"min_length" => split_command.len() >= arg.parse::<usize>().unwrap(),
"length" => split_command.len() == arg.parse::<usize>().unwrap(),
"max_length" => split_command.len() <= arg.parse::<usize>().unwrap() + 1,
"shell" => shell == arg,
_ => unreachable!("Unknown condition when evaluation condition: {}", condition),
}
}