buck

package
v0.7.26 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(cmd string, args ...string) (string, error)

Types

type AuditOutput

type AuditOutput struct {
	OutputMapping map[string][]string
}

AuditOutput models the output from the `buck audit` command.

type Buck

type Buck interface {
	Deps(bool) (graph.Deps, error)
}

Buck defines an interface for all Buck tool implementations.

func New

func New(target string) Buck

New creates a new Buck instance that calls the buck build tool directly.

type Setup

type Setup struct {
	Target string
	Cmd    func(string, ...string) (string, error)
}

Cmd implements Buck and defines how to retrieve buck output.

func (Setup) Deps

func (b Setup) Deps(upload bool) (graph.Deps, error)

Deps finds and uploads the dependencies of a Buck target using the supplied command and returns the dependency graph.

Jump to

Keyboard shortcuts

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