command

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BrewFormulaSuffix defines the suffix of brew formula template files
	BrewFormulaSuffix = ".rb.template"
	// TemplateSuffix defines the suffix of template files
	TemplateSuffix = ".template"
	// SnapshotVersion defines the version string for a snapshot build
	SnapshotVersion = "snapshot"
)
View Source
const (
	// PackageFlag defines the flag name of package option.
	PackageFlag = "pkg"
	// HomebrewFlag defines the flag name of homebrew option.
	HomebrewFlag = "brew"
)

Variables

This section is empty.

Functions

func CmdBuild

func CmdBuild(c *cli.Context) error

CmdBuild run the build command.

func CmdInit

func CmdInit(c *cli.Context) error

CmdInit parses options and run cmdInit.

func CmdUpdate added in v0.2.1

func CmdUpdate(c *cli.Context) error

CmdUpdate implements update command.

Types

type BuildOpt

type BuildOpt struct {
	// Directory configurations.
	Directories
	// Version string.
	Version string
	// Options for ghr command.
	GHROpt ghrOpt
	// Writer to output messages
	Stdout io.Writer
	// Writer to output error messages
	Stderr io.Writer
}

BuildOpt defines options for cmdInit.

type Directories added in v0.3.2

type Directories struct {
	// Directory to store built packages.
	Package string
	// Directory to store homebrew formula.
	Homebrew string
}

Directories defines a configuration structure.

type Generator added in v0.3.2

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

Generator is an interface provides Generate method.

type InitOpt

type InitOpt struct {
	// Directory configurations.
	Directories
	// GitHub user name.
	UserName string
	// GitHub repository name.
	Repository string
	// Description of the target application.
	Description string
	// Command name.
	CmdName string
	// Writer to output messages.
	Stdout io.Writer
}

InitOpt defines options for cmdInit.

Jump to

Keyboard shortcuts

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