Documentation ¶
Index ¶
- Constants
- Variables
- func BuildAndInstall(packageName, DirPath string)
- func CloneAURPackage(packageName, DirPath string) error
- func CpuInfo()
- func CreateArchubDir()
- func DefineFlags()
- func GetArchhubDirPath() string
- func GetHelp()
- func GetLatestVersionFromAUR(packageName string) (string, error)
- func HostInfo()
- func ListPackages() map[string]string
- func MainCleanUp()
- func MainDeletePackage()
- func MainHelp()
- func MainSearch(pkg_search string)
- func MemoryInfo()
- type AURPackage
- type AURResponse
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 CreateArchubDir ¶
func CreateArchubDir()
func DefineFlags ¶
func DefineFlags()
func GetArchhubDirPath ¶
func GetArchhubDirPath() string
func GetLatestVersionFromAUR ¶
func ListPackages ¶
func MainCleanUp ¶
func MainCleanUp()
func MainDeletePackage ¶
func MainDeletePackage()
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"`
}
Click to show internal directories.
Click to hide internal directories.