settings

package
v11.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Describes Sorting method for numberdisplay.
	BottomUp = iota
	TopDown
)

Variables

View Source
var HideMenus = false

HideMenus indicates if pacman's provider menus must be hidden.

View Source
var NoConfirm = false

NoConfirm indicates if user input should be skipped.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	AURURL             string   `json:"aururl"`
	BuildDir           string   `json:"buildDir"`
	Editor             string   `json:"editor"`
	EditorFlags        string   `json:"editorflags"`
	MakepkgBin         string   `json:"makepkgbin"`
	MakepkgConf        string   `json:"makepkgconf"`
	PacmanBin          string   `json:"pacmanbin"`
	PacmanConf         string   `json:"pacmanconf"`
	ReDownload         string   `json:"redownload"`
	ReBuild            string   `json:"rebuild"`
	AnswerClean        string   `json:"answerclean"`
	AnswerDiff         string   `json:"answerdiff"`
	AnswerEdit         string   `json:"answeredit"`
	AnswerUpgrade      string   `json:"answerupgrade"`
	GitBin             string   `json:"gitbin"`
	GpgBin             string   `json:"gpgbin"`
	GpgFlags           string   `json:"gpgflags"`
	MFlags             string   `json:"mflags"`
	SortBy             string   `json:"sortby"`
	SearchBy           string   `json:"searchby"`
	GitFlags           string   `json:"gitflags"`
	RemoveMake         string   `json:"removemake"`
	SudoBin            string   `json:"sudobin"`
	SudoFlags          string   `json:"sudoflags"`
	RequestSplitN      int      `json:"requestsplitn"`
	SearchMode         int      `json:"-"`
	SortMode           int      `json:"sortmode"`
	CompletionInterval int      `json:"completionrefreshtime"`
	SudoLoop           bool     `json:"sudoloop"`
	TimeUpdate         bool     `json:"timeupdate"`
	Devel              bool     `json:"devel"`
	CleanAfter         bool     `json:"cleanAfter"`
	Provides           bool     `json:"provides"`
	PGPFetch           bool     `json:"pgpfetch"`
	UpgradeMenu        bool     `json:"upgrademenu"`
	CleanMenu          bool     `json:"cleanmenu"`
	DiffMenu           bool     `json:"diffmenu"`
	EditMenu           bool     `json:"editmenu"`
	CombinedUpgrade    bool     `json:"combinedupgrade"`
	UseAsk             bool     `json:"useask"`
	BatchInstall       bool     `json:"batchinstall"`
	Runtime            *Runtime `json:"-"`
}

Configuration stores yay's config.

func DefaultConfig

func DefaultConfig() *Configuration

func NewConfig

func NewConfig(version string) (*Configuration, error)

func (*Configuration) CmdBuilder

func (c *Configuration) CmdBuilder(runner exe.Runner) exe.ICmdBuilder

func (*Configuration) ParseCommandLine

func (c *Configuration) ParseCommandLine(a *parser.Arguments) error

func (*Configuration) Save

func (c *Configuration) Save(configPath string) error

SaveConfig writes yay config to file.

func (*Configuration) String

func (c *Configuration) String() string

type ErrPrivilegeElevatorNotFound

type ErrPrivilegeElevatorNotFound struct {
	// contains filtered or unexported fields
}

func (*ErrPrivilegeElevatorNotFound) Error

type ErrRuntimeDir

type ErrRuntimeDir struct {
	// contains filtered or unexported fields
}

func (*ErrRuntimeDir) Error

func (e *ErrRuntimeDir) Error() string

type Runtime

type Runtime struct {
	Mode           parser.TargetMode
	SaveConfig     bool
	CompletionPath string
	ConfigPath     string
	PacmanConf     *pacmanconf.Config
	VCSStore       *vcs.InfoStore
	CmdBuilder     exe.ICmdBuilder
	HTTPClient     *http.Client
	AURClient      *aur.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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