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
--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

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 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

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
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

View File

@ -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":

View File

@ -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: "",

View File

@ -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":