exec

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ui cli.Ui, shutdownCh <-chan struct{}) *cmd

Types

type TargetedUI

type TargetedUI struct {
	Target string
	UI     cli.Ui
}

TargetedUI is a UI that wraps another UI implementation and modifies the output to indicate a specific target. Specifically, all Say output is prefixed with the target name. Message output is not prefixed but is offset by the length of the target so that output is lined up properly with Say output. Machine-readable output has the proper target set.

func (*TargetedUI) Ask

func (u *TargetedUI) Ask(query string) (string, error)

func (*TargetedUI) Error

func (u *TargetedUI) Error(message string)

func (*TargetedUI) Info

func (u *TargetedUI) Info(message string)

func (*TargetedUI) Output

func (u *TargetedUI) Output(message string)

Jump to

Keyboard shortcuts

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