command

package
v0.0.0-...-79ceddb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHELL      = "/bin/sh"
	POWERSHELL = "powershell"
)

Variables

This section is empty.

Functions

func CommandRunInteractive

func CommandRunInteractive(f *cmdutil.Factory, comm string) error

CommandRunInteractive runs a command interactively.

func CommandRunInteractiveWithOutput

func CommandRunInteractiveWithOutput(f *cmdutil.Factory, comm string, envVars []string) (string, error)

CommandRunInteractive runs a command interactively.

func RunCommandStreamOutput

func RunCommandStreamOutput(out io.Writer, envVars []string, comm string) error

RunCommandStreamOutput executes the provived command while streaming its logs (stdout+stderr) directly to terminal

func RunCommandWithOutput

func RunCommandWithOutput(envVars []string, comm string) (string, int, error)

RunCommandWithOutput returns the stringified command output, it's exit code and any errors Commands that exit with exit codes > 0 will return a non-nil error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL