plugin

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

Types

type Plugin

type Plugin struct {
	Name string
}

func NewPlugin

func NewPlugin(name string) *Plugin

func (*Plugin) PersistFiles

func (p *Plugin) PersistFiles(files []pluginTpl.File) error

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

func (p *Plugin) RenderTplFiles() ([]pluginTpl.File, error)

RenderTplFiles takes specified data that the templates needed, then render TplFiles to "Files" and return it as []File.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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