grift

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: MIT Imports: 7 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       meta.Name   `json:"name"`
	Parts      []meta.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 meta.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