commands

package
v0.0.0-...-8ef8192 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2014 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Map = map[string]Command{
	"--help": Help,
	"-h":     Help,
	"-S":     Install,
	"-Sy":    doAll(Update, Install),
	"-Syu":   doAll(Update, Upgrade, Install),
	"-Syyu":  doAll(Update, DistUpgrade, Install),
	"-Ss":    Search,
	"-R":     Remove,
	"-Rn":    Purge,
	"-Rs":    doAll(Remove, Autoremove),
	"-Q":     LocalSearch,
	"-U":     doAll(InstallLocal, InstallMissing),
}

The options that you can use with jogurto You can put functions here, or string functions together with a higher order function like doAll.

Functions

func Autoremove

func Autoremove(packages []string) error

func DistUpgrade

func DistUpgrade(packages []string) error

func Help

func Help(command []string) error

func Install

func Install(packages []string) error

func InstallLocal

func InstallLocal(packages []string) error

func InstallMissing

func InstallMissing(packages []string) error

func LocalSearch

func LocalSearch(packages []string) error

func Purge

func Purge(packages []string) error

func Remove

func Remove(packages []string) error
func Search(packages []string) error

func Update

func Update(packages []string) error

func Upgrade

func Upgrade(packages []string) error

Types

type Command

type Command func(packages []string) error

Jump to

Keyboard shortcuts

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