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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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