package
0.0.0-20241018223127-a062be16fda2
Repository: https://github.com/activestate/cli.git
Documentation: pkg.go.dev
# Functions
BashifyPath takes a windows style path and turns it into a bash style path eg.
No description provided by the author
CmdExitCode returns the exit code of a command.
CmdString returns a human-readable description of c.
No description provided by the author
No description provided by the author
No description provided by the author
DecodeCmd takes an encoded command and decodes it by returning a shell variant based on the OS we're on.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Executable returns the resolved path to the currently running executable.
ExecutableName returns the name of the executable called with the extension removed and falls back to the command used to call the executable.
No description provided by the author
Executables will find all directories that contain executables from the provided list of paths.
Execute will run the given command and with optional settings for the exec.Cmd struct.
ExecuteAndForget will run the given command in the background, returning immediately.
ExecuteAndPipeStd will run the given command and pipe stdin, stdout and stderr.
ExecuteInBackground runs the command in background and returns a buffers for stdout and stderr.
FindExeOnPATH returns the first path from the PATH env var for which the executable exists.
No description provided by the author
FindExeOnPATH returns the first path from the PATH env var for which the executable exists.
Getwd is an alias of os.Getwd which wraps the error in our localized error message and FailGetWd, which is user facing (doesn't get logged).
InheritEnv returns a union of the given environment and os.Environ().
IsAccessDeniedError is primarily used to determine if an operation failed due to insufficient permissions (e.g.
No description provided by the author
No description provided by the author
NewBashEscaper creates a new instance of ShellEscape that's configured for escaping bash style arguments.
NewBatchEscaper creates a new instance of ShellEscape that's configured for escaping batch style arguments.
NewCmdEscaper creates a new instance of ShellEscape that's configured for escaping cmd arguments.
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
SysProcAttrForNewProcessGroup returns a SysProcAttr structure configured to start a process with a new process group.
UniqueExes filters the array of executables for those that would be selected by the command shell in case of a name collision.
# Constants
No description provided by the author
LineSep is the line separator character string used on the GOOS.
# Structs
ShellEscape serve to escape arguments passed to shell commands.
# Interfaces
No description provided by the author