feat(cmd): remove unused absdir option

This commit is contained in:
jguer 2021-09-08 09:43:37 +02:00
parent adb74b9252
commit ba1e06d367
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35
6 changed files with 0 additions and 14 deletions

1
cmd.go
View file

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

View file

@ -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 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 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 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 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 editorflags -d 'Editor flags to use' -f
complete -c $progname -n "not $noopt" -l makepkg -d 'Makepkg command to use' -f complete -c $progname -n "not $noopt" -l makepkg -d 'Makepkg command to use' -f

View file

@ -154,11 +154,6 @@ to use https://aur.tuna.tsinghua.edu.cn/.
Directory to use for Building AUR Packages. This directory is also used as Directory to use for Building AUR Packages. This directory is also used as
the AUR cache when deciding if Yay should skip builds. 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 .TP
.B \-\-editor <command> .B \-\-editor <command>
Editor to use when editing PKGBUILDs. If this is not set the \fBEDITOR\fR Editor to use when editing PKGBUILDs. If this is not set the \fBEDITOR\fR

View file

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

View file

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

View file

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