generate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

generate package provides the base of the generate command which allows to run generators for tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func (Command) HelpText

func (c Command) HelpText() string

func (Command) Name

func (c Command) Name() string

func (Command) ParentName

func (c Command) ParentName() string

func (*Command) Receive

func (c *Command) Receive(plugins []plugins.Plugin)

func (*Command) Run

func (c *Command) Run(ctx context.Context, root string, args []string) error

type Generator

type Generator interface {
	plugins.Plugin
	Generate(context.Context, string, []string) error
}

Generator allows to identify those plugins that are generators.

Jump to

Keyboard shortcuts

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