Parcourir la source

feat(cmd): remove unused absdir option

jguer il y a 3 ans
Parent
commit
ba1e06d367
6 fichiers modifiés avec 0 ajouts et 14 suppressions
  1. 0 1
      cmd.go
  2. 0 1
      completions/fish
  3. 0 5
      doc/yay.8
  4. 0 2
      pkg/settings/args.go
  5. 0 3
      pkg/settings/config.go
  6. 0 2
      pkg/settings/parser/parser.go

+ 0 - 1
cmd.go

@@ -59,7 +59,6 @@ Permanent configuration options:
 
     --aururl      <url>   Set an alternative AUR URL
     --builddir    <dir>   Directory used to download and run PKGBUILDS
-    --absdir      <dir>   Directory used to store downloads from the ABS
     --editor      <file>  Editor to use when editing PKGBUILDs
     --editorflags <flags> Pass arguments to editor
     --makepkg     <file>  makepkg command to use

+ 0 - 1
completions/fish

@@ -183,7 +183,6 @@ complete -c $progname -n "$getpkgbuild" -s p -l print -d 'Print pkgbuild of pack
 complete -c $progname -n "not $noopt" -l save -d 'Save current arguments to yay permanent configuration' -f
 complete -c $progname -n "not $noopt" -l aururl -d 'Set an alternative AUR URL' -f
 complete -c $progname -n "not $noopt" -l builddir -d 'Directory to use for Building AUR Packages' -r
-complete -c $progname -n "not $noopt" -l absdir -d 'Directory used to store downloads from the ABS' -r
 complete -c $progname -n "not $noopt" -l editor -d 'Editor to use' -f
 complete -c $progname -n "not $noopt" -l editorflags -d 'Editor flags to use' -f
 complete -c $progname -n "not $noopt" -l makepkg -d 'Makepkg command to use' -f

+ 0 - 5
doc/yay.8

@@ -155,11 +155,6 @@ Directory to use for Building AUR Packages. This directory is also used as
 the AUR cache when deciding if Yay should skip builds.
 
 .TP
-.B \-\-absdir <dir>
-Directory used to store downloads from the ABS. During \-G, the PKGBUILD
-placed in the current dir symlinks to absdir.
-
-.TP
 .B \-\-editor <command>
 Editor to use when editing PKGBUILDs. If this is not set the \fBEDITOR\fR
 environment variable will be checked, followed by \fBVISUAL\fR. If none of

+ 0 - 2
pkg/settings/args.go

@@ -108,8 +108,6 @@ func (c *Configuration) handleOption(option, value string) bool {
 		c.GitFlags = value
 	case "builddir":
 		c.BuildDir = value
-	case "absdir":
-		c.ABSDir = value
 	case "editor":
 		c.Editor = value
 	case "editorflags":

+ 0 - 3
pkg/settings/config.go

@@ -36,7 +36,6 @@ var NoConfirm = false
 type Configuration struct {
 	AURURL             string   `json:"aururl"`
 	BuildDir           string   `json:"buildDir"`
-	ABSDir             string   `json:"absdir"`
 	Editor             string   `json:"editor"`
 	EditorFlags        string   `json:"editorflags"`
 	MakepkgBin         string   `json:"makepkgbin"`
@@ -110,7 +109,6 @@ func (c *Configuration) Save(configPath string) error {
 
 func (c *Configuration) expandEnv() {
 	c.AURURL = os.ExpandEnv(c.AURURL)
-	c.ABSDir = os.ExpandEnv(c.ABSDir)
 	c.BuildDir = os.ExpandEnv(c.BuildDir)
 	c.Editor = os.ExpandEnv(c.Editor)
 	c.EditorFlags = os.ExpandEnv(c.EditorFlags)
@@ -174,7 +172,6 @@ func DefaultConfig() *Configuration {
 	return &Configuration{
 		AURURL:             "https://aur.archlinux.org",
 		BuildDir:           os.ExpandEnv("$HOME/.cache/yay"),
-		ABSDir:             os.ExpandEnv("$HOME/.cache/yay/abs"),
 		CleanAfter:         false,
 		Editor:             "",
 		EditorFlags:        "",

+ 0 - 2
pkg/settings/parser/parser.go

@@ -333,7 +333,6 @@ func isArg(arg string) bool {
 	case "d", "nodeps":
 	case "assume-installed":
 	case "dbonly":
-	case "absdir":
 	case "noprogressbar":
 	case "numberupgrades":
 	case "noscriptlet":
@@ -519,7 +518,6 @@ func hasParam(arg string) bool {
 	case "gpgflags":
 	case "gitflags":
 	case "builddir":
-	case "absdir":
 	case "editor":
 	case "editorflags":
 	case "makepkg":