package
Version:
v0.0.0-...-a27e3f8
Opens a new window with list of versions in this module.
Published: Nov 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Run(cmd string, out io.Writer, env ...string) (string, error)
-
func RunInDir(cmd, dir string, out io.Writer, env ...string) (string, error)
-
func RunSilent(cmd string, dir string, env ...string) (string, error)
-
type PrefixWriter
Run runs a command, outputting to terminal and returning the full output and/or error.
RunInDir runs a command in the specified directory and returns the full output or error.
RunSilent runs a command without printing to stdout and returns the full output or error.
type PrefixWriter struct {
}
PrefixWriter writes each line written into it to `out` prefixed with `prefix | `
NewPrefixWriter creates a new PrefixWriter
Write takes input bytes and seperates it into lines, writing each to `out`
Source Files
¶
Click to show internal directories.
Click to hide internal directories.