utils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []types.Tool, toolName string) (int, bool)

func FetchToolList

func FetchToolList() ([]types.Tool, error)

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 InstalledVersion

func InstalledVersion(tool types.Tool, basePath string, au *aurora.Aurora) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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