miller/pkg/platform/shellrun_notwindows.go
John Kerl 268a96d002
Export library code in pkg/ (#1391)
* Export library code in `pkg/`

* new doc page
2023-09-10 17:15:13 -04:00

12 lines
369 B
Go

// ================================================================
// Wraps 'sh -c foo bar' or 'cmd /c foo bar', nominally for regression-testing.
// ================================================================
//go:build !windows
// +build !windows
package platform
func GetShellRunArray(command string) []string {
return []string{"/bin/sh", "-c", command}
}