系统命令
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
302 B

package terminal
import (
"testing"
)
func Test_UseTerminal(t *testing.T) {
name := "sudo"
a, b, c, d, e := "-u", "www-data", "php", "/www/web/nextcloud/occ", "trashbin:cleanup"
mRet := UseTerminal(name, a, b, c, d, e)
//mRet := UseTerminal("sudo -u www-data php occ --help")
t.Log(mRet)
}