lib

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorRed      = "\033[0;31m"
	ColorGreen    = "\033[1;32m"
	ColorYellow   = "\033[1;33m"
	ColorLightRed = "\033[1;91m"
	ColorNone     = "\033[0m"
)

Variables

View Source
var (
	Help            bool
	ShowVersion     bool
	CleanUp         bool
	CleanUpAlias    bool
	ListPkg         bool
	ListPkgAlias    bool
	CheckUpdatePkg  bool
	UpdateAllPkg    bool
	UpdatePkg       bool
	UpdatePkgAlias  bool
	DeletePkg       bool
	DeletePkgAlias  bool
	SearchPkg       bool
	SearchPkgAlias  bool
	InstallPkg      bool
	InstallPkgAlias bool
	InfoOfSystem    bool
)

Functions

func BuildAndInstall

func BuildAndInstall(packageName, DirPath string)

func CloneAURPackage

func CloneAURPackage(packageName, DirPath string) error

func CpuInfo added in v0.0.5

func CpuInfo()

func CreateArchubDir

func CreateArchubDir()

func DefineFlags

func DefineFlags()

func GetArchhubDirPath

func GetArchhubDirPath() string

func GetHelp

func GetHelp()

func GetLatestVersionFromAUR

func GetLatestVersionFromAUR(packageName string) (string, error)

func HostInfo added in v0.0.5

func HostInfo()

func ListPackages

func ListPackages() map[string]string

func MainCleanUp

func MainCleanUp()

func MainDeletePackage

func MainDeletePackage()

func MainHelp

func MainHelp()

func MainSearch

func MainSearch(pkg_search string)

func MemoryInfo added in v0.0.5

func MemoryInfo()

Types

type AURPackage

type AURPackage struct {
	Name        string `json:"Name"`
	Description string `json:"Description"`
	Version     string `json:"Version"`
}

func SearchAURPackage

func SearchAURPackage(packageName string) ([]AURPackage, error)

type AURResponse

type AURResponse struct {
	Results []AURPackage `json:"results"`
}

Jump to

Keyboard shortcuts

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