grift

package
v0.14.10 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 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