yay/pkg/settings/runtime.go

39 lines
925 B
Go
Raw Normal View History

2020-07-05 02:45:23 +02:00
package settings
import (
"context"
2021-01-30 12:52:50 +01:00
"net/http"
"github.com/Jguer/yay/v11/pkg/db"
"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"
2022-11-16 00:25:17 +01:00
"github.com/Jguer/aur"
"github.com/Jguer/aur/metadata"
"github.com/Jguer/votar/pkg/vote"
"github.com/Morganamilo/go-pacmanconf"
)
type AURCache interface {
Get(ctx context.Context, query *metadata.AURQuery) ([]aur.Pkg, error)
}
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
2021-05-13 07:27:24 +02:00
AURClient *aur.Client
VoteClient *vote.Client
AURCache AURCache
DBExecutor db.Executor
2020-07-05 02:45:23 +02:00
}