logcmd

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAndLogCommand

func RunAndLogCommand(
	cmd *exec.Cmd,
	log logrus.FieldLogger,
) error

func RunAndLogCommandContext

func RunAndLogCommandContext(
	ctx context.Context,
	log logrus.FieldLogger,
	cmd0 string,
	cmdArgs ...string,
) error

func RunAndLogCommandsContext

func RunAndLogCommandsContext(
	ctx context.Context,
	log logrus.FieldLogger,
	commands ...[]string,
) error

Types

type Logf

type Logf = func(format string, args ...interface{})

Jump to

Keyboard shortcuts

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