build

package
v0.13.14 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Options
	// contains filtered or unexported fields
}

Builder builds a Buffalo binary

func New

func New(ctx context.Context, opts Options) *Builder

New Builder

func (*Builder) AbsoluteBinaryPath added in v0.13.0

func (b *Builder) AbsoluteBinaryPath() string

AbsoluteBinaryPath returns the absolute path to the binary.

func (*Builder) Cleanup

func (b *Builder) Cleanup() error

Cleanup after run. This is automatically run at the end of `Run`. It is provided publicly in-case a manual clean up is necessary.

func (*Builder) Run

func (b *Builder) Run() error

Run builds a Buffalo binary

type Options

type Options struct {
	meta.App
	ExtractAssets          bool     `json:"extract_assets"`
	WithAssets             bool     `json:"with_assets"`
	LDFlags                string   `json:"ld_flags"`
	Tags                   []string `json:"tags"`
	Static                 bool     `json:"static"`
	Debug                  bool     `json:"debug"`
	Compress               bool     `json:"compress"`
	Environment            string   `json:"environment"`
	SkipTemplateValidation bool     `json:"skip_template_validation"`
}

Options for a build

func (Options) String

func (o Options) String() string

Jump to

Keyboard shortcuts

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