utils

package
v0.0.0-...-e31a72d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

FileExists checks if the file exists, gracefully handling ENOENT.

func Run

func Run(command string, args ...string)

Run executes a command, logging it, and exit with a fatal error if the command failed.

func RunExt

func RunExt(capture bool, retries int, command string, args ...string) string

RunExt executes a command, optionally capturing the output and retrying multiple times before exiting with a fatal error.

func RunGetOut

func RunGetOut(command string, args ...string) string

RunGetOut is like Run(..), but get the output as a string

func RunIgnoreErr

func RunIgnoreErr(command string, args ...string)

RunIgnoreErr is like Run(..), but doesn't exit on errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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