plugin

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdBuilder

type CmdBuilder interface {
	Cmd(subcommand string) (cmd.Cmd, error)
}

type Exit

type Exit interface {
	Exit()
}

type NonTranslatingUI

type NonTranslatingUI struct {
	UI
}

func (*NonTranslatingUI) Confirm

func (ui *NonTranslatingUI) Confirm(message string) bool

func (*NonTranslatingUI) Failed

func (ui *NonTranslatingUI) Failed(message string, args ...interface{})

type Plugin

type Plugin struct {
	UI         UI
	CmdBuilder CmdBuilder
	Exit       Exit
	Config     *config.Config
}

func (*Plugin) GetMetadata

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

func (*Plugin) Run

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

type UI

type UI interface {
	Failed(message string, args ...interface{})
	Say(message string, args ...interface{})
	Ask(prompt string) (answer string)
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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