autocomplete

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoCompleter

type AutoCompleter struct {
	Client *api.MinepkgClient

	CacheDir string
	// contains filtered or unexported fields
}

func (*AutoCompleter) Complete

func (a *AutoCompleter) Complete(toComplete string) ([]string, cobra.ShellCompDirective)

func (*AutoCompleter) CompleteModpacks

func (a *AutoCompleter) CompleteModpacks(toComplete string) ([]string, cobra.ShellCompDirective)

func (*AutoCompleter) GetProjects

func (a *AutoCompleter) GetProjects(ctx context.Context) ([]api.Project, error)

GetPackages tries to fetch the packages from the local cache if that fails it will fetch them from the api

Jump to

Keyboard shortcuts

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