config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveConfig added in v0.2.7

type ArchiveConfig struct {
	Format       string
	NameTemplate string `yaml:"name_template"`
	Replacements map[string]string
}

ArchiveConfig config used for the archive

type BuildConfig

type BuildConfig struct {
	Oses    []string
	Arches  []string
	Main    string
	Ldflags string
}

BuildConfig contains the build configuration section

type Homebrew added in v0.1.6

type Homebrew struct {
	Repo    string
	Folder  string
	Caveats string
}

Homebrew contains the brew section

type ProjectConfig

type ProjectConfig struct {
	Repo       string
	BinaryName string `yaml:"binary_name"`
	Files      []string
	Brew       Homebrew
	Build      BuildConfig
	Archive    ArchiveConfig
}

ProjectConfig includes all project configuration

func Load

func Load(file string) (config ProjectConfig, err error)

Load config file

Jump to

Keyboard shortcuts

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