(input: PowerShellInput)
| 2670 | |
| 2671 | #[allow(clippy::needless_pass_by_value)] |
| 2672 | fn execute_powershell(input: PowerShellInput) -> std::io::Result<runtime::BashCommandOutput> { |
| 2673 | let _ = &input.description; |
| 2674 | let shell = detect_powershell_shell()?; |
| 2675 | execute_shell_command( |
| 2676 | shell, |
| 2677 | &input.command, |
| 2678 | input.timeout, |
| 2679 | input.run_in_background, |
| 2680 | ) |
| 2681 | } |
| 2682 | |
| 2683 | fn detect_powershell_shell() -> std::io::Result<&'static str> { |
| 2684 | if command_exists("pwsh") { |
no test coverage detected