runtime.go 568 B

123456789101112131415161718192021222324252627282930313233
  1. package settings
  2. import (
  3. "net/http"
  4. "github.com/Morganamilo/go-pacmanconf"
  5. "github.com/Jguer/aur"
  6. "github.com/Jguer/yay/v10/pkg/settings/exe"
  7. "github.com/Jguer/yay/v10/pkg/vcs"
  8. )
  9. type TargetMode int
  10. const (
  11. ModeAny TargetMode = iota
  12. ModeAUR
  13. ModeRepo
  14. )
  15. type Runtime struct {
  16. Mode TargetMode
  17. SaveConfig bool
  18. CompletionPath string
  19. ConfigPath string
  20. PacmanConf *pacmanconf.Config
  21. VCSStore *vcs.InfoStore
  22. CmdBuilder *exe.CmdBuilder
  23. CmdRunner exe.Runner
  24. HTTPClient *http.Client
  25. AURClient *aur.Client
  26. }