# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Uses environment variables and other configurations to attempt to locate the path to the user's shell.
Returns whether the current user is root or not.
Take an *exec.Cmd or []string and return a shell-executable command line string.
No description provided by the author
No description provided by the author
A panicky version of ShellOut.
Same as Split, but panics if there is an error.
Generic password prompt that takes the input file descriptor and verify flag as options.
Read a password from standard input, disabling echo and prompting twice.
Read a password from standard input, disabling echo.
Returns the first argument if the current user is root, and the second if not.
The same as RootOr, but returns a string.
No description provided by the author
Run a command and return the standard output.
Attempts to call ShellOut, but will return nil if there is an error.
Same as Split, but silently discards any errors, returning an empty slice in this case.
Splits the given string into words, honoring quoting and escaping conventions of common command line shells.
Registers a list of OS signals to intercept and provides an opportunity to run a function before the program exits.
Locates the first path containing the given command.
Locates the all paths containing the given command.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author