command

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const FormulaTemplateAsset = "assets/formula.rb"

FormulaTemplateAsset defines the asset name of a formula template.

View Source
const MakefileAsset = "assets/Makefile"

MakefileAsset defines the asset name of Makefile.

Variables

This section is empty.

Functions

func CmdBuild

func CmdBuild(c *cli.Context) error

func CmdInit

func CmdInit(c *cli.Context) error

func Sha256

func Sha256(path string) (res string, err error)

Types

type BuildOpt

type BuildOpt struct {
	// Directory to store package files
	Dest string
	// Directory to store brew file
	Brew string
	// Version string.
	Version string
}

BuildOpt defines options for cmdInit.

type Formula

type Formula struct {
	Version     string
	FileName64  string
	FileName386 string
	Hash64      string
	Hash386     string
}

func (*Formula) Generate

func (f *Formula) Generate(path string) (ref []byte, err error)

type FormulaTemplate

type FormulaTemplate struct {
	Package  string
	UserName string
}

func (*FormulaTemplate) Generate

func (f *FormulaTemplate) Generate() (res []byte, err error)

type Generater

type Generater interface {
	Generate() ([]byte, error)
}

type InitOpt

type InitOpt struct {
	// Directory to store package files
	Dest string
	// Directory to store brew file
	Brew string
	// GitHub user name.
	UserName string
}

InitOpt defines options for cmdInit.

type Makefile

type Makefile struct {
	// Directory to store package files
	Dest string
	// GitHub user name.
	UserName string
}

func (*Makefile) Generate

func (m *Makefile) Generate() (res []byte, err error)

Jump to

Keyboard shortcuts

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