pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/system/exec/exec_windows.go (about)

     1  // Package exec provides methods for executing commands
     2  package exec
     3  
     4  // ////////////////////////////////////////////////////////////////////////////////// //
     5  //                                                                                    //
     6  //                         Copyright (c) 2022 ESSENTIAL KAOS                          //
     7  //      Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>     //
     8  //                                                                                    //
     9  // ////////////////////////////////////////////////////////////////////////////////// //
    10  
    11  // ❗ Sudo executes command with sudo
    12  func Sudo(user string, args ...string) error {
    13  	panic("UNSUPPORTED")
    14  	return nil
    15  }
    16  
    17  // ❗ Run executes command
    18  func Run(command string, args ...string) error {
    19  	panic("UNSUPPORTED")
    20  	return nil
    21  }
    22  
    23  // ❗ RunAsUser runs command as a given user
    24  func RunAsUser(user, logFile string, command string, args ...string) error {
    25  	panic("UNSUPPORTED")
    26  	return nil
    27  }
    28  
    29  // ////////////////////////////////////////////////////////////////////////////////// //