command

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package command provides utilities for running external commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(name, cmdTemplate string, params map[string]interface{}, timeout time.Duration) error

Run runs the command specified in cmdTemplate which is rendered with the given params and logs stderr and stdout to a new log adapter.

func RunOutput added in v0.3.0

func RunOutput(name, cmdTemplate string, params map[string]interface{}, timeout time.Duration) (string, string, error)

RunOutput works just like Run but returns stdout and stderr instead of logging it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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