Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCliConnection ¶
func NewCliConnection(cliServerPort string) *cliConnection
Types ¶
type CliConnection ¶
type CliConnection interface {
CliCommandWithoutTerminalOutput(args ...string) ([]string, error)
CliCommand(args ...string) ([]string, error)
}
*
List of commands avaiable to CliConnection variable passed into run
*
type Command ¶
type Command struct {
Name string
Alias string
HelpText string
UsageDetails Usage //Detail usage to be displayed in `cf help <cmd>`
}
type Plugin ¶
type Plugin interface {
Run(cliConnection CliConnection, args []string)
GetMetadata() PluginMetadata
}
*
Command interface needs to be implemented for a runnable plugin of `cf`
*
type PluginMetadata ¶
type PluginMetadata struct {
Name string
Version VersionType
Commands []Command
}
type VersionType ¶
type VersionType struct {
Major int
Minor int
Build int
}
Click to show internal directories.
Click to hide internal directories.