mirror of
https://github.com/Jguer/yay
synced 2024-10-31 13:42:27 +00:00
27 lines
473 B
Go
27 lines
473 B
Go
package settings
|
|
|
|
import (
|
|
"github.com/Morganamilo/go-pacmanconf"
|
|
|
|
"github.com/Jguer/yay/v10/pkg/settings/exe"
|
|
"github.com/Jguer/yay/v10/pkg/vcs"
|
|
)
|
|
|
|
type TargetMode int
|
|
|
|
const (
|
|
ModeAny TargetMode = iota
|
|
ModeAUR
|
|
ModeRepo
|
|
)
|
|
|
|
type Runtime struct {
|
|
Mode TargetMode
|
|
SaveConfig bool
|
|
CompletionPath string
|
|
ConfigPath string
|
|
PacmanConf *pacmanconf.Config
|
|
VCSStore *vcs.InfoStore
|
|
CmdBuilder *exe.CmdBuilder
|
|
CmdRunner exe.Runner
|
|
}
|