pkg.re/essentialkaos/ek@v12.36.0+incompatible/system/exec/exec_windows.go (about) 1 // +build !linux, !darwin, windows 2 3 // Package exec provides methods for executing commands 4 package exec 5 6 // ////////////////////////////////////////////////////////////////////////////////// // 7 // // 8 // Copyright (c) 2021 ESSENTIAL KAOS // 9 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 10 // // 11 // ////////////////////////////////////////////////////////////////////////////////// // 12 13 // Sudo execute some command with sudo 14 func Sudo(user string, args ...string) error { 15 return nil 16 } 17 18 // Run execute some command 19 func Run(command string, args ...string) error { 20 return nil 21 } 22 23 // RunAsUser run command as some user 24 func RunAsUser(user, logFile string, command string, args ...string) error { 25 return nil 26 } 27 28 // ////////////////////////////////////////////////////////////////////////////////// //