| 1 | //go:build windows |
| 2 | |
| 3 | package sandbox |
| 4 | |
| 5 | // Command returns the native shell invocation unwrapped. Windows currently has |
| 6 | // no Reasonix OS-level Bash sandbox; config.BashModeForGOOS keeps the effective |
| 7 | // product setting fixed to off. Returning wrapped=false also preserves the |
| 8 | // fail-closed contract for any internal caller that constructs an enforce Spec |
| 9 | // directly. |
| 10 | func Command(spec Spec, sh Shell, command string) ([]string, bool) { |
| 11 | return sh.argv(command), false |
| 12 | } |
| 13 | |
| 14 | // CommandArgs is like Command but accepts the command as raw argv instead of a |
| 15 | // shell command string. |
| 16 | func CommandArgs(spec Spec, args []string) ([]string, bool) { |
| 17 | return args, false |
| 18 | } |
| 19 | |
| 20 | // Available reports that Reasonix does not currently ship an OS-level Bash |
| 21 | // sandbox on Windows. |
| 22 | func Available() bool { |
| 23 | return false |
| 24 | } |
| 25 |