package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 1, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package exec implements command execution functionality.
Command wraps exec.Command
NewCommand returns a Command.
func (*Command) Run ¶
Run executes the command and returns stdout, stderr and the error if there is any.
RunAndRedirectOutput executes command and redirects output
Option is a functional option type that modifies a Command.
WithArgs sets the arguments for the command
WithCommand defines the command
WithEnv sets env variables
WithStdin sets up the command to read from this io.Reader.
WithStdout sets up the command to write to io.Writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.