mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
c091460d8c
The callback is set to allways silently say yes, When passing to pacman for the intall pacman will then ask the question giving the user a chance to answer.
13 lines
200 B
Go
13 lines
200 B
Go
package main
|
|
|
|
import (
|
|
alpm "github.com/jguer/go-alpm"
|
|
)
|
|
|
|
func QuestionCallback(question alpm.QuestionAny) {
|
|
q, err := question.QuestionInstallIgnorepkg()
|
|
if err == nil {
|
|
q.SetInstall(true)
|
|
}
|
|
}
|