command

package
v0.0.0-...-3bda7ca Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Function to just clear the terminal

func Elevate

func Elevate(password string)

This functions runs the command "sudo -Sk -- echo", this forces sudo to re-authenticate and lets us enter the password to STDIN giving us the ability to run sudo commands

func Run

func Run(binary string, args ...string) ([]string, error)

func RunErr

func RunErr(binary string, args ...string) ([]string, []string, error)

This function is just like command.Run() but also returns STDERR

Types

This section is empty.

Jump to

Keyboard shortcuts

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