yay/pkg/settings/runtime.go
J Guerreiro e4a1f018ea
feat(search): Add fuzzy name matching and mixed sources (#1719)
* fix(alpm): fix callback text

* feat(yay): Add mixed search result

* remove old result structs

* add option for controlling query builder

* only set query builder after parsing args

* add parser args

* update manpage

* write test for results

* write test for results

* mixed source test

* only sort 1 time with every mode
2022-03-06 23:48:15 +00:00

29 lines
635 B
Go

package settings
import (
"net/http"
"github.com/Morganamilo/go-pacmanconf"
"github.com/Jguer/aur"
"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"
)
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
HTTPClient *http.Client
AURClient *aur.Client
}