pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WindowExt = ".exe"
)

Functions

func GetUpdaterCallback

func GetUpdaterCallback(toolName string) func()

GetUpdaterCallback returns a callback function when executed updates that tool

func GetVersionCheckCallback

func GetVersionCheckCallback(toolName, basePath string) func() string

GetVersionCheckCallback returns a callback function and when it is executed returns a version string of that tool

func GoInstall

func GoInstall(path string, tool types.Tool) error

GoInstall installs given tool at path

func Install

func Install(path string, tool types.Tool) error

Install installs given tool at path

func Remove

func Remove(path string, tool types.Tool) error

Remove removes given tool

func Update

func Update(path string, tool types.Tool, disableChangeLog bool) error

Update updates a given tool

Types

This section is empty.

Directories

Path Synopsis
Package path is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.
Package path is useful for managing PATH as part of the Environment in the Windows HKey Local User registry.

Jump to

Keyboard shortcuts

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