yay/pkg/settings/runtime.go

31 lines
515 B
Go
Raw Normal View History

2020-07-05 02:45:23 +02:00
package settings
import (
2021-01-30 12:52:50 +01:00
"net/http"
"github.com/Morganamilo/go-pacmanconf"
"github.com/Jguer/yay/v10/pkg/settings/exe"
"github.com/Jguer/yay/v10/pkg/vcs"
)
2020-07-05 02:45:23 +02:00
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
2021-01-30 12:52:50 +01:00
HTTPClient *http.Client
2020-07-05 02:45:23 +02:00
}