Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingConfig = fmt.Errorf("could not find a buffalo-plugins config file at %s", ConfigPath(meta.New(".")))
ErrMissingConfig is if config/buffalo-plugins.toml file is not found. Use plugdeps#On(app) to test if plugdeps are being used
Functions ¶
func ConfigPath ¶
ConfigPath returns the path to the config/buffalo-plugins.toml file relative to the app
Types ¶
type Command ¶
type Command struct { Name string `toml:"name" json:"name"` Flags []string `toml:"flags,omitempty" json:"flags,omitempty"` Commands []Command `toml:"command,omitempty" json:"commands,omitempty"` }
Command is the plugin command you want to control further
type Plugin ¶
type Plugin struct { Binary string `toml:"binary" json:"binary"` GoGet string `toml:"go_get,omitempty" json:"go_get,omitempty"` Local string `toml:"local,omitempty" json:"local,omitempty"` Commands []Command `toml:"command,omitempty" json:"commands,omitempty"` Tags meta.BuildTags `toml:"tags,omitempty" json:"tags,omitempty"` }
Plugin represents a Go plugin for Buffalo applications
type Plugins ¶
type Plugins struct {
// contains filtered or unexported fields
}
Plugins manages the config/buffalo-plugins.toml file as well as the plugins available from the file.
func List ¶
List all of the plugins the application depends on. Will return ErrMissingConfig if the app is not using config/buffalo-plugins.toml to manage their plugins. Use plugdeps#On(app) to test if plugdeps are being used.
Click to show internal directories.
Click to hide internal directories.