command

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

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() string

func Deactivate

func Deactivate() ([]string, error)

func GetAlias

func GetAlias(name string) string
func GetLink(name string) string

func Install

func Install(selector string, dst string) (string, error)
func Link(selector string, dir string) error

func LinkAlias

func LinkAlias(name string) error

func LinkLatest

func LinkLatest() error

func Ls

func Ls() ([]*semver.Version, error)

func LsBestMatch

func LsBestMatch(selector string) (ver string, err error)

func LsBestMatchWithVersionSlice

func LsBestMatchWithVersionSlice(vs []*semver.Version, selector string) (ver string, err error)

func LsRemote

func LsRemote(os, arch string) (map[*semver.Version]string, error)

func SetAlias

func SetAlias(name string, ver string) (err error)

func Uninstall

func Uninstall(selector string) error

func Use

func Use(selector string) ([]string, error)

func Which

func Which(selector string, home bool) (string, error)

Types

type RedirectTracer

type RedirectTracer struct {
	Transport http.RoundTripper
}

func (RedirectTracer) RoundTrip

func (self RedirectTracer) RoundTrip(req *http.Request) (resp *http.Response, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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