github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/exec/shell.go (about)

     1  package exec
     2  
     3  import "os"
     4  
     5  func Shell(cmd Cmd) (stdout, stderr string, err error) {
     6  	execCmd := cmd
     7  	execCmd.Name = os.Getenv("SHELL")
     8  	execCmd.Argv = []string{"-c", cmd.Command}
     9  	return Run(execCmd)
    10  }