execute

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(ctx context.Context, name string, c output.Color, cmd *exec.Cmd) error

func ExecuteCommandReturnStdout

func ExecuteCommandReturnStdout(ctx context.Context, cmd *exec.Cmd) (string, error)

ExecuteCommandReturnStdout executes a command and returns the output of stdout as a string. It does not print the output to the console. This can be used to get the output of a command. It will not return until the command has completed or the context is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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