plugin

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(l log.Logger) (*Manager, error)

func (*Manager) Build

func (m *Manager) Build(ctx context.Context, filename string) error

func (*Manager) BuildAndLoadPlugin

func (m *Manager) BuildAndLoadPlugin(ctx context.Context, filename, provider string) (Plugin, error)

func (*Manager) Load

func (m *Manager) Load(filename string) (*plugin.Plugin, error)

func (*Manager) LoadPlugin

func (m *Manager) LoadPlugin(filename, provider string) (Plugin, error)

func (*Manager) Tidy

func (m *Manager) Tidy(ctx context.Context, filename string) error

type Plugin

type Plugin interface {
	Prompt(ctx context.Context, cfg config.Prompt) error
	Execute(ctx context.Context, args []string) error
	Brew(ctx context.Context, cfg config.Ownbrew) error
	Require(ctx context.Context, cfg config.Require) error
}

type Provider

type Provider func(l log.Logger) (Plugin, error)

Jump to

Keyboard shortcuts

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