2020-07-05 00:45:23 +00:00
|
|
|
package settings
|
|
|
|
|
2020-07-05 01:17:35 +00:00
|
|
|
import (
|
2021-01-30 11:52:50 +00:00
|
|
|
"net/http"
|
|
|
|
|
2020-07-05 13:34:27 +00:00
|
|
|
"github.com/Morganamilo/go-pacmanconf"
|
2020-08-17 23:19:51 +00:00
|
|
|
|
2020-08-21 00:39:52 +00:00
|
|
|
"github.com/Jguer/yay/v10/pkg/settings/exe"
|
|
|
|
"github.com/Jguer/yay/v10/pkg/vcs"
|
2020-07-05 01:17:35 +00:00
|
|
|
)
|
|
|
|
|
2020-07-05 00:45:23 +00:00
|
|
|
type TargetMode int
|
|
|
|
|
|
|
|
const (
|
|
|
|
ModeAny TargetMode = iota
|
|
|
|
ModeAUR
|
|
|
|
ModeRepo
|
|
|
|
)
|
|
|
|
|
|
|
|
type Runtime struct {
|
2020-07-05 01:17:35 +00:00
|
|
|
Mode TargetMode
|
|
|
|
SaveConfig bool
|
|
|
|
CompletionPath string
|
|
|
|
ConfigPath string
|
2020-07-05 13:34:27 +00:00
|
|
|
PacmanConf *pacmanconf.Config
|
2020-08-21 00:39:52 +00:00
|
|
|
VCSStore *vcs.InfoStore
|
|
|
|
CmdBuilder *exe.CmdBuilder
|
|
|
|
CmdRunner exe.Runner
|
2021-01-30 11:52:50 +00:00
|
|
|
HTTPClient *http.Client
|
2020-07-05 00:45:23 +00:00
|
|
|
}
|