dependencies

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllRequired []*Dependency
	AllOptional []*Dependency
)

Functions

func Add

func Add(dep *Dependency)

func AllRequiredMustBeInstalled

func AllRequiredMustBeInstalled() error

Types

type Dependency

type Dependency struct {
	// Command that should be found in PATH
	Command string

	// Url to dependency's website
	Url string

	// IsRequired indicates whether this is a core dependency required to run joy
	IsRequired bool

	// RequiredBy lists which joy sub-commands require this dependency
	RequiredBy []string
}

func (*Dependency) IsInstalled

func (d *Dependency) IsInstalled() bool

func (*Dependency) MustBeInstalled

func (d *Dependency) MustBeInstalled() error

Jump to

Keyboard shortcuts

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