googet

package
v0.0.0-...-261eebd Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

README

Glazier: Googet Package

The Glazier Googet package provides wrappers for managing the GooGet CLI.

Documentation

Overview

Package googet provides googet interoperability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepo

func AddRepo(name, url string, conf *Config) error

AddRepo adds a googet repository to the local system.

func Clean

func Clean(conf *Config) error

Clean cleans the Googet cache directory.

func Install

func Install(pkg, sources string, reinstall bool, dbOnly bool, conf *Config) error

Install installs a Googet package.

func PackageVersion

func PackageVersion(pkg string) (string, error)

PackageVersion attempts to retrieve the current version of the named package from the local system.

func Remove

func Remove(pkg string, dbOnly bool, conf *Config) error

Remove removes a Googet package.

func RemoveRepo

func RemoveRepo(repo string, conf *Config) error

RemoveRepo removes a Googet repository.

func Update

func Update(conf *Config) error

Update updates all googet packages.

Types

type Config

type Config struct {
	GooGetExe  string
	ExecConfig helpers.ExecConfig
}

Config provides the ability to customize GooGet behavior.

func NewConfig

func NewConfig() *Config

NewConfig generates a new Config object.

type Package

type Package struct {
	Name    string
	Version string
}

Package represents a GooGet package.

func Installed

func Installed(initial string, conf *Config) ([]Package, error)

Installed lists installed package(s).

type Repo

type Repo struct {
	Name string
	URL  string
}

Repo represents a googet repository configuration.

func ListRepos

func ListRepos(conf *Config) ([]Repo, error)

ListRepos lists the googet repos configured on the local system.

Jump to

Keyboard shortcuts

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