package
2.0.0-alpha1+incompatible
Repository: https://github.com/ironstar-io/tokaido.git
Documentation: pkg.go.dev
# Functions
BashStringCmd - Execute a bash command from a string `bash -c "(cmd)" with no log output`.
BashStringSplitOutput - Execute a bash command splitting the resulting stdout and stderr.
BufferInsert - Insert content into a buffer at a target string.
CheckCmd - Checks if an executable is available and if not, returns false.
CheckCmdHard - Root executable.
CheckSudo - Check if a user has permissions to run sudo It's up to the calling function to prime the user to input their password, and to present an error and next-steps in the event that sudo access fails.
CommandSubSplitOutput - Execute a command and return the output value split into stdout and stderr.
CommandSubSplitOutputContext - Execute a command and return the output value split into stdout and stderr from a directory context.
CommandSubstitution - Execute a command and return the output value.
CommandSubstitutionExitCode - Execute a command and return 0 if successful, or 1 if failed We can't return the true exit code on MacOS as this isn't a reliable method and will have if `name` is not available in the users' path (see: https://stackoverflow.com/questions/10385551/get-exit-code-go).
ConfirmationPrompt - The 'weighting' param should be one of [ "y", "n" ].
DebugCmd ...
DebugErrOutput ...
DebugOutput ...
DebugString ...
DownloadFile - download a url to a local file.
GainSudo - use `sudo true` to gain sudo privileges.
RandomString ...
ReadStdin ...
StdinPrompt ...
StdoutCmd - Execute a command on the users' OS.
StdoutStreamCmd - Execute a command on the users' OS and stream stdout.
StdoutStreamCmdDebug - Execute a command on the users' OS and stream stdout for debug only.
StdoutStreamCmdDebugContext - Execute a command on the users' OS and stream stdout for debug only.
StreamOSCmd - Execute a command outputting OS stdout/stdin/stderr directly to the console.
StreamOSCmdContext - Execute a command outputting OS stdout/stdin/stderr directly to the console from context.
No description provided by the author
Timestamp - Return current timestamp in RFC3339 format.