executil

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 14 Imported by: 0

README

executil

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

func Activate(command string) error

Activate makes a command available.

func ArchiveInstaller

func ArchiveInstaller(prefix string) func(path string) error

func Command added in v0.0.2

func Command(name string, arg ...string) *exec.Cmd

func Ensure

func Ensure(name string) error

func Install

func Install(name string) error

func IsActive

func IsActive(command string) bool

func IsAvailable

func IsAvailable(command string) bool

IsAvailable returns true if the command is available within the PATH variable.

func IsInstalled

func IsInstalled(name string) bool

func PathActivator

func PathActivator(path string) error

func Register

func Register(pkg Package)

Register a new Package. If a command

func SetLogger

func SetLogger(l Logger)

Types

type Logger

type Logger func(...interface{})

type Package

type Package struct {
	Name      string
	OS        string
	Arch      string
	Commands  []string
	Download  string
	Checksum  string
	Installer func(path string) error
	Activator func(path string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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