cmdutil

package
v0.0.0-...-28e11cf Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandTTY

func CommandTTY(name string, arg ...string) *exec.Cmd

func CommandTTYWithBuffer

func CommandTTYWithBuffer(
	name string,
	arg ...string,
) (*exec.Cmd, *bytes.Buffer)

CommandTTYWithBuffer returns a command with stdin, stdout, and stderr and a buffer that contains stdout and stderr combined.

func Exists

func Exists(command string) bool

Exists indicates if the command exists

func GetPathOrDefault

func GetPathOrDefault(command, def string) string

GetPathOrDefault gets the path for the given command. If it's not found, it will return the given value instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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