yay/pkg/settings/runtime.go
Jo 9be51052f7
update deps (#1868)
* update deps

* align struct
2022-12-29 18:42:43 +00:00

39 lines
925 B
Go

package settings
import (
"context"
"net/http"
"github.com/Jguer/yay/v11/pkg/db"
"github.com/Jguer/yay/v11/pkg/query"
"github.com/Jguer/yay/v11/pkg/settings/exe"
"github.com/Jguer/yay/v11/pkg/settings/parser"
"github.com/Jguer/yay/v11/pkg/vcs"
"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)
}
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
HTTPClient *http.Client
AURClient *aur.Client
VoteClient *vote.Client
AURCache AURCache
DBExecutor db.Executor
}