Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const LongUsage = `` /* 5544-byte string literal not displayed */
View Source
const ShortUsage = `` /* 409-byte string literal not displayed */
View Source
const Usage = ShortUsage + "\n" + LongUsage

Variables

This section is empty.

Functions

This section is empty.

Types

type Help

type Help struct {
	CLI cfplugin.CliConnection
	UI  UI
}

func (*Help) Long added in v0.2.0

func (h *Help) Long()

func (*Help) Short added in v0.2.0

func (h *Help) Short()

type Plugin

type Plugin struct {
	UI      UI
	Version string
	RunErr  error
	Exit    <-chan struct{}
}

func (*Plugin) GetMetadata

func (p *Plugin) GetMetadata() cfplugin.PluginMetadata

func (*Plugin) Help

func (p *Plugin) Help(name string)

func (*Plugin) Install

func (p *Plugin) Install() error

func (*Plugin) Run

func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string)

type UI

type UI interface {
	local.UI
	Prompt(prompt string) string
	Warn(format string, a ...interface{})
	Error(err error)
}

Jump to

Keyboard shortcuts

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