types

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpts

type BuildOpts struct {
	Clean       bool
	Interactive bool
}

type Config

type Config struct {
	RootCmd               string   `json:"rootCmd" koanf:"rootCmd"`
	UseRootCmd            bool     `json:"useRootCmd" koanf:"useRootCmd"`
	PagerStyle            string   `json:"pagerStyle" koanf:"pagerStyle"`
	IgnorePkgUpdates      []string `json:"ignorePkgUpdates" koanf:"ignorePkgUpdates"`
	Repos                 []Repo   `json:"repo" koanf:"repo"`
	AutoPull              bool     `json:"autoPull" koanf:"autoPull"`
	LogLevel              string   `json:"logLevel" koanf:"logLevel"`
	UpdateSystemOnUpgrade bool     `json:"updateSystemOnUpgrade" koanf:"updateSystemOnUpgrade"`
}

Config represents the ALR configuration file

type Directories

type Directories struct {
	BaseDir   string
	SrcDir    string
	PkgDir    string
	ScriptDir string
}

type Repo

type Repo struct {
	Name    string   `json:"name" koanf:"name"`
	URL     string   `json:"url" koanf:"url"`
	Ref     string   `json:"ref" koanf:"ref"`
	Mirrors []string `json:"mirrors" koanf:"mirrors"`
}

Repo represents a ALR repo within a configuration file

type RepoConfig

type RepoConfig struct {
	Repo struct {
		MinVersion string   `toml:"minVersion"`
		URL        string   `toml:"url"`
		Ref        string   `toml:"ref"`
		Mirrors    []string `toml:"mirrors"`
	}
}

RepoConfig represents a ALR repo's alr-repo.toml file.

type ScriptFile

type ScriptFile struct {
	File *syntax.File
	Path string
}

func (*ScriptFile) GobDecode

func (s *ScriptFile) GobDecode(data []byte) error

func (*ScriptFile) GobEncode

func (s *ScriptFile) GobEncode() ([]byte, error)

type Scripts

type Scripts struct {
	PreInstall  string `sh:"preinstall"`
	PostInstall string `sh:"postinstall"`
	PreRemove   string `sh:"preremove"`
	PostRemove  string `sh:"postremove"`
	PreUpgrade  string `sh:"preupgrade"`
	PostUpgrade string `sh:"postupgrade"`
	PreTrans    string `sh:"pretrans"`
	PostTrans   string `sh:"posttrans"`
}

Jump to

Keyboard shortcuts

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