Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginFilenamePrefix = "cbctl" PluginDirectory = "plugins" )
Variables ¶
This section is empty.
Functions ¶
func HandlePluginCommand ¶
func HandlePluginCommand(pluginHandler PluginHandler, cmdArgs []string) error
Types ¶
type CommandOverrideVerifier ¶
type CommandOverrideVerifier struct {
// contains filtered or unexported fields
}
func (*CommandOverrideVerifier) Verify ¶
func (v *CommandOverrideVerifier) Verify(path string) []error
implements PathVerifier and determines if a given path
type DefaultPluginHandler ¶
type DefaultPluginHandler struct {
// contains filtered or unexported fields
}
func NewDefaultPluginHandler ¶
func NewDefaultPluginHandler() *DefaultPluginHandler
type PathVerifier ¶
type PluginHandler ¶
type PluginOptions ¶
type PluginOptions struct { *app.Options PluginPaths []string NameOnly bool Verifier PathVerifier // contains filtered or unexported fields }
a struct to support command
func (*PluginOptions) Run ¶
func (o *PluginOptions) Run() error
Click to show internal directories.
Click to hide internal directories.