util

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareOutputPath

func PrepareOutputPath(log *logger.Logger, outputPath string) (*os.File, error)

PrepareOutputPath ensures that the directory containing the specified path exist. It also checks that the full path does not refer to an existing file or directory. If such a path already exists an error is returned.

func RunCommand

func RunCommand(log *logger.Logger, path string, cmd string, args ...string) (stdout []byte, stderr []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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