okbuck

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

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

Types

type Dependency

type Dependency struct {
	Jar      string
	Name     string
	Revision string
}

Dependency holds revision information after parsing output.

type OkBuck

type OkBuck interface {
	Deps(string) (graph.Deps, error)
}

OkBuck defines an interface for all OkBuck tool implementations.

func New

func New(target string) OkBuck

New creates a new OkBuck instance that calls the okbuck build tool directly.

type Setup

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

Setup implements OkBuck and defines how to retrieve OkBuck output.

func (Setup) Deps

func (b Setup) Deps(classpath string) (graph.Deps, error)

Deps finds the dependencies of an OkBuck target or classpath using the supplied command and returns the dependency graph.

type Target

type Target struct {
	BinaryJar        string `json:"binaryJar"`
	Aar              string `json:"aar"`
	MavenCoordinates string `json:"mavenCoords"`
}

Target represents an OkBuck build target.

Jump to

Keyboard shortcuts

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