grift

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct{}

Grift command is a root command to run tasks usage is ox task [name]. If no name is passed this will list the tasks

func (Command) FindRoot added in v1.5.0

func (c Command) FindRoot() string

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) Run

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

type Generator added in v1.5.0

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

func (Generator) Generate added in v1.5.0

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

func (Generator) InvocationName added in v1.5.0

func (g Generator) InvocationName() string

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

func (Generator) Name added in v1.5.0

func (g Generator) Name() string

Name returns the name of the plugin

type Initializer added in v1.5.0

type Initializer struct{}

func (Initializer) Initialize added in v1.5.0

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

func (Initializer) Name added in v1.5.0

func (i Initializer) Name() string

Jump to

Keyboard shortcuts

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