handlers

package
v0.0.0-...-8626096 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FontsWithVersion

func FontsWithVersion(database *sql.DB, fonts []types.Font, version string) []types.Font

func FuzzySearchFonts

func FuzzySearchFonts(font string, fonts []string) ([]string, error)

func GetData

func GetData() (types.NerdFonts, error)

func HandleInstall

func HandleInstall(args types.Args, database *sql.DB, data types.NerdFonts, downloadPath string, extractPath string) error

func HandleUninstall

func HandleUninstall(args types.Args, database *sql.DB, data types.NerdFonts, extractPath string) error

func HandleUpdate

func HandleUpdate(database *sql.DB, data types.NerdFonts, downloadPath string, extractPath string) error

func InstallFont

func InstallFont(font types.Font, downloadPath string, extractPath string, keepTar bool) error

func IsAdmin

func IsAdmin() bool

func IsFontUpdatAvilable

func IsFontUpdatAvilable(database *sql.DB, data types.NerdFonts) bool

func IsUpdateAvilable

func IsUpdateAvilable(remote string, local string) bool

func ListFonts

func ListFonts(fonts []types.Font, onlyInstalled bool)

func SetupDB

func SetupDB(database *sql.DB, remoteData types.NerdFonts)

func UninstallFont

func UninstallFont(path string, name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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