Skip to content

v0.4.0: Add exec.Sudo(h) exec option (#29)

Compare
Choose a tag to compare
@kke kke released this 18 Aug 11:04
· 325 commits to main since this release
51570d9

API changes:

Sudo

Before:

h.Exec("sudo ps")

Now:

h.Exec("ps", exec.Sudo(h))

Upload

Before:

h.Upload(src, dst) // always used sudo to overwrite destination

After:

h.Upload(src, dst, exec.Sudo(h)) // now requires exec.Sudo(h) to overwrite non-user files