grift

package
v0.14.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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       inflect.Name   `json:"name"`
	Parts      []inflect.Name `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 inflect.Name) 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
JackTT - Gopher 🇻🇳