buildfile

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buildfile

type Buildfile struct {
	bytes.Buffer
}

func New

func New() *Buildfile

func (*Buildfile) WriteCmd

func (b *Buildfile) WriteCmd(command string)

WriteCmd writes a command to the build file. The command will be echoed back as a base16 encoded command so that it can be parsed and appended to the build output

func (*Buildfile) WriteCmdSilent

func (b *Buildfile) WriteCmdSilent(command string)

WriteCmdSilent writes a command to the build file but does not echo the command.

func (*Buildfile) WriteComment

func (b *Buildfile) WriteComment(comment string)

WriteComment adds a comment to the build file. This is really only used internally for debugging purposes.

func (*Buildfile) WriteEnv

func (b *Buildfile) WriteEnv(key, value string)

WriteEnv exports the environment variable as part of the script. The environment variables are not echoed back to the console, and are kept private by default.

func (*Buildfile) WriteHost

func (b *Buildfile) WriteHost(mapping string)

WriteHost adds an entry to the /etc/hosts file.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL