sbt

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterLine

func FilterLine(line string) bool

func ParseDependencyGraph

func ParseDependencyGraph(graph Graph, evicted string) (pkg.Imports, pkg.Deps, error)

func ParseEvicted

func ParseEvicted(evicted string) map[pkg.ID]pkg.ID

func ParsePackageID

func ParsePackageID(packageID string) pkg.ID

func Task

func Task(project, configuration, task string) string

Types

type Dependency

type Dependency struct {
	Name    string
	Version string
}

func ReadDependencyTree

func ReadDependencyTree(lines []string, parser LineParser) ([]Dependency, map[Dependency][]Dependency, error)

type Edge

type Edge struct {
	Source string `xml:"source,attr"`
	Target string `xml:"target,attr"`
}

type Graph

type Graph struct {
	Nodes []Node `xml:"node"`
	Edges []Edge `xml:"edge"`
}

type GraphML

type GraphML struct {
	Graph Graph `xml:"graph"`
}

type LineParser

type LineParser func(line string) (level int, node Dependency, err error)

level is 1-indexed

type Node

type Node struct {
	ID string `xml:"id,attr"`
}

type SBT

type SBT struct {
	Bin string
}

func (*SBT) Clean

func (s *SBT) Clean(dir, project, configuration string) error

func (*SBT) Compile

func (s *SBT) Compile(dir, project, configuration string) error

func (*SBT) DependencyList

func (s *SBT) DependencyList(dir, project, configuration string) (string, error)

func (*SBT) DependencyTree

func (s *SBT) DependencyTree(dir, project, configuration string) (pkg.Imports, pkg.Deps, error)

func (*SBT) Projects

func (s *SBT) Projects(dir string) ([]string, error)

Jump to

Keyboard shortcuts

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