util

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepCommand

func PrepCommand(logger *logrus.Entry, com string, args ...string) *exec.Cmd

PrepCommand prepares a command to run using the server's logging mechanism for it's own stdout and stderr.

func TimeCmd

func TimeCmd(cmd *exec.Cmd) (millis float64, err error)

TimeCmd executes the given command and returns the execution time as a float value of milliseconds and the response error (if any) from the command execution.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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