I want to create a wrapper program that can wrapper whatever shell commands user provides, like:
./wrapper "cmd1 && cmd2"
In Python, I can call os.system("cmd1 && cmd2")
. But Golang's exec.Command
needs a list for command and args. Is there way in Golang to archive the same as Python's os.system()
?