sudo for windows
Forked from https://github.com/mattn/sudo 2021-03-05 in order to make a signed build.
C:\>sudo cmd /c dir
sudo.exe 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
Download a signed binary from releases and place it in your PATH.
go get github.com/drud/sudo
or
make
MIT
Yasuhiro Matsumoto (a.k.a. mattn)