sudo

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(r runner.Runner, path string, data []byte, perm os.FileMode) error

WriteFile writes data to path via a temp file + sudo install. This avoids needing root to create the temp file while still installing the final file with correct ownership (root) and permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL