buffalo: github.com/gobuffalo/buffalo/genny/grift Index | Files

package grift

import "github.com/gobuffalo/buffalo/genny/grift"


Package Files

grift.go options.go templates.go

func New Uses

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

New generator to create a grift task

type Options Uses

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 Uses

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

Last checks if the name is the last of the parts

func (*Options) Validate Uses

func (opts *Options) Validate() error

Validate options

Package grift imports 6 packages (graph) and is imported by 3 packages. Updated 2020-04-09. Refresh now. Tools for package owners.