Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create() error
Create creates a new plugin. 1. Render template files 2. Persist all files 3. Print help information
func ValidatePlugin ¶ added in v0.5.0
ValidatePlugin validate a plugin. 1. Render template files 2. Validate need validate files
func ValidatePlugins ¶ added in v0.5.0
func ValidatePlugins() error
ValidatePlugins validate all plugins calling ValidatePlugin() via all plugins name
Types ¶
type Plugin ¶
type Plugin struct {
Name string
}
func (*Plugin) PersistFiles ¶
PersistFiles gets the []pluginTpl.File, for each File: call the persistFile() method to deal with.
func (*Plugin) PrintHelpInfo ¶
func (p *Plugin) PrintHelpInfo()
func (*Plugin) RenderTplFiles ¶
RenderTplFiles takes specified data that the templates needed, then render TplFiles to "Files" and return it as []File.
Click to show internal directories.
Click to hide internal directories.