plugin

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailed = errors.New("command failed")
View Source
var ParseErr = errors.New("incorrect type for arg")

Functions

func IsPluginCommand

func IsPluginCommand(osArgs []string) (configv3.Plugin, bool)

func PluginCommandNames

func PluginCommandNames() []string

func RunPlugin

func RunPlugin(plugin configv3.Plugin) error

Types

type DisplayUsage

type DisplayUsage interface {
	DisplayUsage()
}

type UI

type UI interface {
	DisplayError(err error)
	DisplayWarning(template string, templateValues ...map[string]interface{})
	DisplayText(template string, templateValues ...map[string]interface{})
	FlushDeferred()
}

Jump to

Keyboard shortcuts

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