command

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Start() (*bytes.Buffer, error)
	Terminate()
	NotifyOfChanges() *bytes.Buffer
	IsSubprocessRunning() bool
}

Command is an object that wraps the logic of running a task in Bazel and manipulating it.

func DefaultCommand

func DefaultCommand(bazelArgs []string, target string, args []string) Command

DefaultCommand is the normal mode of interacting with iBazel. If you start a server in this mode and notify of changes the server will be killed and restarted.

func NotifyCommand

func NotifyCommand(bazelArgs []string, target string, args []string) Command

NotifyCommand is an alternate mode for starting a command. In this mode the command will be notified on stdin that the source files have changed.

Jump to

Keyboard shortcuts

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