cache

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download() error

download archive

func Find

func Find(command string) string

func List

func List()

Types

type Command

type Command struct {
	Name    string   `json:"name"`
	Targets []Target `json:"targets"`
}

type Index

type Index struct {
	Commands []Command `json:"commands"`
}

func ReadIndex

func ReadIndex() (Index, string)

read index.json from cache dir

type Target

type Target struct {
	Os       string `json:"os"`
	Language string `json:"language"`
}

Jump to

Keyboard shortcuts

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