yay/pkg/settings/runtime.go

36 lines
882 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/Jguer/yay/v12/pkg/db"
"github.com/Jguer/yay/v12/pkg/query"
"github.com/Jguer/yay/v12/pkg/settings/exe"
"github.com/Jguer/yay/v12/pkg/settings/parser"
"github.com/Jguer/yay/v12/pkg/text"
"github.com/Jguer/yay/v12/pkg/vcs"
2022-11-16 00:25:17 +01:00
"github.com/Jguer/aur"
"github.com/Jguer/aur/rpc"
2022-11-16 00:25:17 +01:00
"github.com/Jguer/votar/pkg/vote"
"github.com/Morganamilo/go-pacmanconf"
)
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.Store
CmdBuilder exe.ICmdBuilder
2021-01-30 12:52:50 +01:00
HTTPClient *http.Client
AURClient *rpc.Client
VoteClient *vote.Client
AURCache aur.QueryClient
DBExecutor db.Executor
Logger *text.Logger
2020-07-05 02:45:23 +02:00
}