cli

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAsset added in v0.43.0

func FindAsset(rel *Release, osName, arch string) (string, string, error)

FindAsset returns the name and download URL for a release asset matching the given OS and architecture.

func RunConfig

func RunConfig(args []string) error

RunConfig handles `matcha config [plugin_name]`.

func RunContactsExport added in v0.33.0

func RunContactsExport(args []string) error

func RunContactsSync added in v0.35.0

func RunContactsSync(args []string) error

RunContactsSync handles `matcha contacts sync`.

func RunDict added in v0.40.0

func RunDict(args []string) error

RunDict dispatches `matcha dict <subcommand>`.

func RunDictAdd added in v0.40.0

func RunDictAdd(args []string) error

RunDictAdd downloads and installs a spellcheck dictionary.

func RunDictList added in v0.40.0

func RunDictList() error

RunDictList prints all installed dictionaries.

func RunDictRemove added in v0.40.0

func RunDictRemove(args []string) error

RunDictRemove deletes an installed dictionary.

func RunInstall

func RunInstall(args []string) error

RunInstall handles `matcha install <url_or_file>`.

func RunUpgradeV1 added in v0.43.0

func RunUpgradeV1(args []string) error

RunUpgradeV1 handles `matcha upgrade-v1` and upgrades a pre-v1 install (or release candidate) to the v1 release.

func SetupMailto added in v0.35.0

func SetupMailto() error

SetupMailto registers matcha as the default handler for mailto: links.

func UpgradeBinaryFromAsset added in v0.43.0

func UpgradeBinaryFromAsset(assetURL, assetName, tag, cmdName string) error

UpgradeBinaryFromAsset downloads the named release asset, extracts the matcha binary, and replaces the running executable.

Types

type Release added in v0.43.0

type Release struct {
	TagName    string `json:"tag_name"`
	Prerelease bool   `json:"prerelease"`
	Assets     []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

Release describes a GitHub release and its assets.

Jump to

Keyboard shortcuts

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