Go package that provides cross-platform shell command execution for cmdIDE. On Windows it routes commands through PowerShell; on macOS and Linux it falls back to sh.
import ps "github.com/Command-IDE/powershell"Returns an *exec.Cmd that runs the joined parts as a shell command using the platform-appropriate shell.
- Windows —
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command <cmd> - macOS / Linux —
sh -c <cmd>
Returns a PowerShell-backed *exec.Cmd. Use BuildShellCmd for cross-platform code.
String constant "powershell.exe" — the executable used for interactive sessions on Windows.
| File | Tag | Purpose |
|---|---|---|
shell.go |
windows |
PowerShell implementation |
shell_other.go |
!windows |
POSIX sh fallback |
This package is a sub-module of cmdIDE and is consumed via a replace directive in the host app's go.mod during development.
MIT