MCPcopy
hub / github.com/Jguer/yay / syncSearch

Function syncSearch

query.go:23–34  ·  view source on GitHub ↗

SyncSearch presents a query to the local repos and to the AUR.

(ctx context.Context, pkgS []string,
	dbExecutor db.Executor, queryBuilder query.Builder, verbose bool,
)

Source from the content-addressed store, hash-verified

21
22// SyncSearch presents a query to the local repos and to the AUR.
23func syncSearch(ctx context.Context, pkgS []string,
24 dbExecutor db.Executor, queryBuilder query.Builder, verbose bool,
25) error {
26 queryBuilder.Execute(ctx, dbExecutor, pkgS)
27
28 searchMode := query.Minimal
29 if verbose {
30 searchMode = query.Detailed
31 }
32
33 return queryBuilder.Results(dbExecutor, searchMode)
34}
35
36// SyncInfo serves as a pacman -Si for repo packages and AUR packages.
37func syncInfo(ctx context.Context, run *runtime.Runtime,

Callers 1

handleSyncFunction · 0.85

Calls 2

ExecuteMethod · 0.65
ResultsMethod · 0.65

Tested by

no test coverage detected