context

package
v0.0.0-...-afecb3f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// TODO(gsoltis): should the RootPackageJSON be included in PackageInfos?
	PackageInfos     map[interface{}]*fs.PackageJSON
	PackageNames     []string
	TopologicalGraph dag.AcyclicGraph
	RootNode         string
	Lockfile         lockfile.Lockfile
	PackageManager   *packagemanager.PackageManager
	// contains filtered or unexported fields
}

Context of the CLI

func BuildPackageGraph

func BuildPackageGraph(repoRoot titanpath.AbsoluteSystemPath, rootPackageJSON *fs.PackageJSON) (*Context, error)

BuildPackageGraph constructs a Context instance with information about the package dependency graph

func SinglePackageGraph

func SinglePackageGraph(repoRoot titanpath.AbsoluteSystemPath, rootPackageJSON *fs.PackageJSON) (*Context, error)

SinglePackageGraph constructs a Context instance from a single package.

type Warnings

type Warnings struct {
	// contains filtered or unexported fields
}

Warnings Error type for errors that don't prevent the creation of a functional Context

func (*Warnings) Error

func (w *Warnings) Error() string

Jump to

Keyboard shortcuts

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