package
Version:
v0.14.0-alpha1
Opens a new window with list of versions in this module.
Published: Feb 19, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package command provides utilities for running external commands.
Package command provides utilities for running external commands.
Run runs the command specified in cmdTemplate which is rendered with the
given params and logs stderr and stdout to a new log adapter.
RunOutput works just like Run but returns stdout and stderr instead of
logging it.
type Generator struct {
}
Generator represents a command generator.
NewGenerator creates a new generator initialized with the gives arguments.
Append appends the given arguments to the end of the arguments.
Appendv appends the give string slice to the command
func (*Generator) Command ¶
Command returns the currently built command.
Prepend prepends the given arguments to the beginning of the arguments.
Prependv prepends the given string slice to the command.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.