project: Fix task arguments being quoted incorrectly for nushell and powershell (#38056)

Release Notes:

- Fixed task arguments being quoted incorrectly for nushell and
powershell

Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
This commit is contained in:
Lukas Wirth
2025-09-12 12:02:39 +00:00
committed by GitHub
co-authored by Piotr Osiewicz
parent 592b013013
commit e68aa18fd4
3 changed files with 84 additions and 56 deletions
+8
View File
@@ -193,6 +193,14 @@ impl ShellKind {
.collect(),
}
}
pub fn command_prefix(&self) -> Option<char> {
match self {
ShellKind::Powershell => Some('&'),
ShellKind::Nushell => Some('^'),
_ => None,
}
}
}
/// ShellBuilder is used to turn a user-requested task into a