command

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBestMatchJDK added in v0.11.0

func FindBestMatchJDK(jdks []discovery.JDK, selector string) (discovery.JDK, error)

func Ls

func Ls(managedOnly bool) ([]discovery.JDK, error)

func LsBestMatch

func LsBestMatch(selector string, managedOnly bool) (string, error)

func NewAliasCommand added in v0.12.0

func NewAliasCommand() *cobra.Command

func NewConfigCommand added in v0.10.0

func NewConfigCommand() *cobra.Command

func NewCurrentCommand added in v0.12.0

func NewCurrentCommand() *cobra.Command

func NewDeactivateCommand added in v0.12.0

func NewDeactivateCommand() *cobra.Command

func NewDefaultCommand added in v0.3.0

func NewDefaultCommand() *cobra.Command

NewDefaultCommand creates the `javm default` CLI command.

func NewDiscoverCommand

func NewDiscoverCommand() *cobra.Command

func NewInitCommand

func NewInitCommand() *cobra.Command

func NewInstallCommand

func NewInstallCommand(client PackagesWithInfoClient) *cobra.Command

func NewLinkCommand added in v0.12.0

func NewLinkCommand() *cobra.Command

func NewLsCommand added in v0.3.0

func NewLsCommand() *cobra.Command

func NewLsDistributionsCommand

func NewLsDistributionsCommand(client DistributionsClient) *cobra.Command

func NewLsRemoteCommand

func NewLsRemoteCommand(client PackagesClient) *cobra.Command

func NewUnaliasCommand added in v0.12.0

func NewUnaliasCommand() *cobra.Command

func NewUninstallCommand added in v0.12.0

func NewUninstallCommand() *cobra.Command

func NewUnlinkCommand added in v0.12.0

func NewUnlinkCommand() *cobra.Command

func NewUseCommand added in v0.12.0

func NewUseCommand() *cobra.Command

func NewWhichCommand added in v0.3.0

func NewWhichCommand() *cobra.Command

func SetDefaultVersion added in v0.3.0

func SetDefaultVersion(selector string) error

SetDefaultVersion writes the provided selector to the default-version file in the javm configuration directory. It creates the directory if needed.

func Use

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

func Which

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

Types

type DistributionsClient

type DistributionsClient interface {
	GetDistributions() ([]discoapi.Distribution, error)
}

type PackagesClient

type PackagesClient interface {
	GetPackages(os, arch, distribution, version string) ([]discoapi.Package, error)
}

type PackagesWithInfoClient

type PackagesWithInfoClient interface {
	GetPackages(os, arch, distribution, version string) ([]discoapi.Package, error)
	GetPackageInfo(id string) (*discoapi.PackageInfo, error)
}

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