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

plugin

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const LongUsage = `` /* 3681-byte string literal not displayed */
View Source
const ShortUsage = `` /* 291-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
	ExitChan 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 {
	Prompt(prompt string) string
	Output(format string, a ...interface{})
	Warn(format string, a ...interface{})
	Error(err error)
	Loading(message string, f func() error) error
}

Jump to

Keyboard shortcuts

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