buck

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd added in v0.7.31

func NewCmd(name string) func(string, ...string) (string, *errors.Error)

NewCmd creates a function that executes the chosen buck executable.

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, binary 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, *errors.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