prgs

package
v0.0.0-...-39e2216 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGetter

type PGetter interface {
	Get() []Prg
}

PGetter gets programs (from an internal config)

func Getter

func Getter() PGetter

Getter returns a object able to get a list of Prgs

type PathWriter

type PathWriter interface {
	// WritePath writes in a writer `set PATH=`... with all prgs PATH.
	// Note: not all programs have a path
	WritePath(prgs []Prg, w io.Writer) error
}

PathWriter computes final PATH of a collection of programs

type Prg

type Prg interface {
	// Name is the name of a program to install, acts as an id
	Name() string
}

Prg defines what kind of service a program has to provide

Jump to

Keyboard shortcuts

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