build

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: MIT Imports: 21 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) 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"`
}

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