mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
chore(yay): modernize exec commands
This commit is contained in:
7
get.go
7
get.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
@@ -47,14 +48,14 @@ func printPkgbuilds(dbExecutor download.DBSearcher, httpClient *http.Client, tar
|
||||
}
|
||||
|
||||
// yay -G.
|
||||
func getPkgbuilds(dbExecutor download.DBSearcher, config *settings.Configuration, targets []string,
|
||||
force bool) error {
|
||||
func getPkgbuilds(ctx context.Context, dbExecutor download.DBSearcher,
|
||||
config *settings.Configuration, targets []string, force bool) error {
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cloned, errD := download.PKGBUILDRepos(dbExecutor,
|
||||
cloned, errD := download.PKGBUILDRepos(ctx, dbExecutor,
|
||||
config.Runtime.CmdBuilder, targets, config.Runtime.Mode, config.AURURL, wd, force)
|
||||
if errD != nil {
|
||||
text.Errorln(errD)
|
||||
|
||||
Reference in New Issue
Block a user