plugin

package
v0.0.0-...-da56ca4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile = os.Getenv("HOME") + "/.gopp"
View Source
var OutputRewriters = []ptype.OutputRewriter{}
View Source
var PLUGIN cmdPlugin
View Source
var PluginDecls = make(map[string]ptype.PluginInfo)
View Source
var Plugins = []PluginEntry{
	{Name: "plugin", Plugin: PLUGIN, Uri: "github.com/gizak/gopp/plugin"},
	{Name: "cmdhelp", Plugin: pCmdHelp, Uri: "github.com/gizak/gopp/plugin"}}
View Source
var SubcmdRunners = make(map[string]ptype.SubcmdRunner)

Functions

func Init

func Init()

func Install

func Install(list PList) error

func InstallWithConfig

func InstallWithConfig() error

func SetLogOutput

func SetLogOutput(w io.Writer)

Types

type Config

type Config struct {
	Plugins PList `yaml:"plugins"`
}

type PList

type PList []PListEntry

type PListEntry

type PListEntry struct {
	Plugin string
	Uri    string
	Deps   []string
}

type PluginEntry

type PluginEntry struct {
	Name   string
	Plugin interface{}
	Uri    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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