action

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncompleteArgs = errors.New("incomplete args")
)

Functions

This section is empty.

Types

type Generator

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

func (Generator) Generate

func (g Generator) Generate(ctx context.Context, root string, args []string) error

func (Generator) InvocationName

func (g Generator) InvocationName() string

InvocationName is used to identify the generator when the generate command is called.

func (Generator) Name

func (g Generator) Name() string

Name returns the name of the plugin

type Initializer

type Initializer struct{}

Initializer

func (*Initializer) Flags

func (i *Initializer) Flags() *pflag.FlagSet

func (*Initializer) Initialize

func (i *Initializer) Initialize(ctx context.Context, options new.Options) error

func (Initializer) Name

func (i Initializer) Name() string

func (*Initializer) ParseFlags

func (i *Initializer) ParseFlags([]string)

Jump to

Keyboard shortcuts

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