mirror of
https://github.com/nushell/nushell.git
synced 2025-08-23 18:55:57 +02:00
Getting closer to multiline scripts (#2738)
* Begin allowing comments and multiline scripts. * clippy * Finish moving to groups. Test pass
This commit is contained in:
@@ -51,9 +51,9 @@ impl WholeStreamCommand for SubCommand {
|
||||
tag,
|
||||
));
|
||||
}
|
||||
match block.block[0].list.get(0) {
|
||||
Some(item) => match item {
|
||||
ClassifiedCommand::Expr(expr) => expr.clone(),
|
||||
match block.block[0].pipelines.get(0) {
|
||||
Some(item) => match item.list.get(0) {
|
||||
Some(ClassifiedCommand::Expr(expr)) => expr.clone(),
|
||||
_ => {
|
||||
return Err(ShellError::labeled_error(
|
||||
"Expected a condition",
|
||||
|
Reference in New Issue
Block a user