grift

package
v0.16.12 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *Options) (*genny.Generator, error)

New generator to create a grift task

Types

type Options

type Options struct {
	Name       name.Ident   `json:"name"`
	Parts      []name.Ident `json:"parts"`
	Args       []string     `json:"args"`
	Namespaced bool         `json:"namespaced"`
}

Options for creating a new grift task

func (Options) Last

func (opts Options) Last(n name.Ident) bool

Last checks if the name is the last of the parts

func (*Options) Validate

func (opts *Options) Validate() error

Validate options

Jump to

Keyboard shortcuts

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