osutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(command string) bool

CommandExists checks for an executable in the PATH env variable

func FileExists

func FileExists(filePath string) bool

FileExists checks if filePath exists on the disk

func RunCommand

func RunCommand(command string) error

RunCommand runs a command and prints the output to stdout and error to stderr.

See https://golang.org/pkg/os/exec/#Cmd.Run for return values

Types

This section is empty.

Jump to

Keyboard shortcuts

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