mattn / sudo
- пятница, 16 июня 2017 г. в 03:11:43
Go
sudo for windows
C:\>sudo cmd /c dir
Then, you'll see the UAC dialog.
sudo cmd /c type secret-file.txt > accessible-file.txt
echo 123 | sudo my-command.exe | more
sudo netsh interface ip add address "Local Area Connection" 33.33.33.33 255.255.255.255
sudo notepad c:\windows\system32\drivers\etc\hosts
sudo
go get github.com/mattn/sudo
requirement go1.8 or later.
MIT
Yasuhiro Matsumoto (a.k.a. mattn)