Documentation
¶
Index ¶
- func FindAsset(rel *Release, osName, arch string) (string, string, error)
- func RunConfig(args []string) error
- func RunContactsExport(args []string) error
- func RunContactsSync(args []string) error
- func RunDict(args []string) error
- func RunDictAdd(args []string) error
- func RunDictList() error
- func RunDictRemove(args []string) error
- func RunInstall(args []string) error
- func RunUpgradeV1(args []string) error
- func SetupMailto() error
- func UpgradeBinaryFromAsset(assetURL, assetName, tag, cmdName string) error
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAsset ¶ added in v0.43.0
FindAsset returns the name and download URL for a release asset matching the given OS and architecture.
func RunContactsExport ¶ added in v0.33.0
func RunContactsSync ¶ added in v0.35.0
RunContactsSync handles `matcha contacts sync`.
func RunDictAdd ¶ added in v0.40.0
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
RunDictRemove deletes an installed dictionary.
func RunInstall ¶
RunInstall handles `matcha install <url_or_file>`.
func RunUpgradeV1 ¶ added in v0.43.0
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
UpgradeBinaryFromAsset downloads the named release asset, extracts the matcha binary, and replaces the running executable.