grift

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator added in v0.10.1

type Generator struct {
	App        meta.App       `json:"app"`
	Name       inflect.Name   `json:"name"`
	Parts      []inflect.Name `json:"parts"`
	Args       []string       `json:"args"`
	Namespaced bool           `json:"namespaced"`
}

Generator for creating a new grift task

func New

func New(args ...string) (Generator, error)

New generator for grift tasks

func (Generator) Last added in v0.10.1

func (g Generator) Last(n inflect.Name) bool

Last checks if the name is the last of the parts

func (Generator) Run added in v0.10.1

func (gg Generator) Run(root string, data makr.Data) error

Run allows to create a new grift task generator

func (Generator) Validate added in v0.10.1

func (g Generator) Validate() error

Validate the generator

Jump to

Keyboard shortcuts

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