sudo

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Runner plan.Runner
}

Runner wraps the inner Runner with sudo.

func (*Runner) RunCommand

func (s *Runner) RunCommand(cmd string, stdin io.Reader) (stdouterr string, err error)

RunCommand wraps the command with sudo and passes it on to the wrapped RunCommand.

Jump to

Keyboard shortcuts

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