yay/pkg/settings/runtime.go

35 lines
844 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"
2021-05-13 07:27:24 +02:00
"github.com/Jguer/aur"
"github.com/Jguer/votar/pkg/vote"
2021-05-13 07:27:24 +02:00
"github.com/Jguer/yay/v11/pkg/db"
2022-10-28 23:58:15 +02:00
"github.com/Jguer/yay/v11/pkg/metadata"
"github.com/Jguer/yay/v11/pkg/query"
2021-09-08 22:28:08 +02:00
"github.com/Jguer/yay/v11/pkg/settings/exe"
"github.com/Jguer/yay/v11/pkg/settings/parser"
"github.com/Jguer/yay/v11/pkg/vcs"
)
2020-07-05 02:45:23 +02:00
type Runtime struct {
Mode parser.TargetMode
QueryBuilder query.Builder
Version string // current version of yay
SaveConfig bool
CompletionPath string
ConfigPath string
PacmanConf *pacmanconf.Config
VCSStore *vcs.InfoStore
CmdBuilder exe.ICmdBuilder
2021-01-30 12:52:50 +01:00
HTTPClient *http.Client
2021-05-13 07:27:24 +02:00
AURClient *aur.Client
VoteClient *vote.Client
2022-11-15 16:22:57 +01:00
AURCache *metadata.AURCacheClient
DBExecutor db.Executor
2020-07-05 02:45:23 +02:00
}