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 ¶
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 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.
Click to show internal directories.
Click to hide internal directories.