plugin

package
v0.0.0-...-dbeba48 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Name    string
	Enabled bool
	Args    []string
	Short   string
}

type PluginManager

type PluginManager struct {
	Plugins []Plugin
}

func NewManager

func NewManager() PluginManager

func (PluginManager) GetRunnablePlugins

func (p PluginManager) GetRunnablePlugins() []PluginRunner

type PluginRunner

type PluginRunner struct {
	Name  string
	Run   func(args []string)
	Args  []string
	Short string
}

func (*PluginRunner) SetRunArgs

func (r *PluginRunner) SetRunArgs(args []string)

Jump to

Keyboard shortcuts

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