Commit graph

60 commits

Author SHA1 Message Date
Daniel Oh 836fc5922a
add short option for --repo (#2380)
* add short option for --repo

* run pre-commit

* update man page

* add fish completion

* add a N options

* add long options

---------

Co-authored-by: jguer <me@jguer.space>
2024-06-28 16:40:35 +02:00
Joey Holtzman d02c45e5b6
Remove deprecated flags in favor of boolean flags (#2350) 2024-01-25 16:03:47 +01:00
Joey Holtzman 04c76a404e
feat(install): add --keepsrc to keep pkg/ and src/ directories (#2272)
* feat(install): add --nocleanbuild to keep pkg/ and src/ directories for
AUR packages

Providing this flag during installation of AUR packages allows for keeping
the src/ and pkg/ directories produced my makepkg. If the user wants to
delete the directories, they can either select to cleanBuild in the
cleanmenu or run the installation without the --nocleanbuild flag (yay
will only remove the directories if the package is rebuilt)

* fix(completion): simplify description for --nocleanbuild in fish

This makes the description consistent with the descriptions in the
man page, --help, and zsh completion.

* refactor(install): Rename --nocleanbuild to --keepsrc

This naming scheme is more familiar to users since it is the name of the
flag in Paru.

---------

Co-authored-by: jguer <me@jguer.space>
2023-09-18 09:21:42 +02:00
smolx adde043514
Add --askyesremovemake option (#2199)
Same as --askremovemake option but with "Y" as a default answer.
2023-06-11 16:13:01 +00:00
Jo e28319fece
chore(yay): lift legacy engine (#2189)
* remove legacy engine

* remove legacy dep handlers

* use prepare for gendb

* remove unused method

* remove aur client old interface

* remove unused menu fns

* remove inactive upgrademenu option

* unexport printInfo
2023-05-24 08:22:18 +00:00
Balki e09209bb19
fix(zsh): fix zsh completion for yay specific flags (#1893) 2023-01-13 13:50:09 +00:00
moson-mo 647d160182
add option/setting "AurRpcUrl" (#1809)
Signed-off-by: moson-mo <mo-son@mailbox.org>
2022-09-18 00:05:27 +00:00
Jguer 0fdfe79943
Add experimental vote util to yay (#1765)
* feat(vote): add vote utility

* update deps

* add vote and unvote capabilities

* use -W for web ops

* add fish completions

* add bash completion

* add zsh completion

* add md instructions
2022-06-17 16:55:22 +00:00
Matt Alexander 22c165a11f feat(search): add optional setting that formats each search result on a single line, Part II 2021-11-05 09:26:34 +01:00
Matt Alexander 673f077e7f feat(search): add optional setting that formats each search result on a single line 2021-11-05 09:26:34 +01:00
jguer ba1e06d367
feat(cmd): remove unused absdir option 2021-09-08 22:25:55 +02:00
jguer fd9e2638f9
fix(yay): fix completions of -Gp 2021-01-31 19:07:08 +01:00
jguer 28c985b378
fix(pkgbuild): move pkgbuild to Gp 2021-01-31 19:07:08 +01:00
nycex d9b440c929
implement yay -Pp option
fix linting errors

format with make fmt

fix completions

resolve most of the requested changes

move loop over dbSlice back into makeRequest

query aur in chunks of 20

check for status codes

continue instead of return in for loop

format code
2021-01-31 19:07:08 +01:00
jguer f7d6ad59cd
fix(completions): list installed is not available upstream yet 2020-12-11 10:24:32 +01:00
jguer b864d433df
fix(completions): sync completions with upstream, namely packages 2020-12-11 01:30:58 +01:00
Maxime Houis fe091f7578 Fix typo in usage 2020-03-09 15:00:19 +01:00
Akatsuki d5718b7406
Fix -U complete
__fish_complete_suffix function is changed.
2020-02-25 22:52:16 +01:00
patatahooligan 558c17f67c
Add missing diff completions for zsh 2020-02-25 22:52:15 +01:00
J Guerreiro 45da573821
Merge pull request #1102 from Jguer/fix-completions
Update completions for zsh and bash to pacman 5.2
2019-11-11 20:16:21 +00:00
morganamilo f2959922a7
Remove tar support
tar is slower and harder to diff. I doubt any one still uses it intentially.

There's a chance some people have not cleared their cache in two years
and still have tar based packages around. But forcing them to clear
their cache is not a big deal at all.
2019-11-11 02:57:14 +00:00
Jguer 410c7e758f
Updated zsh and bash completions to pacman 5.2 and yay 9.4.*
Removes tar completions
Removes --owns from bash/zsh
Bash now prints repo pkgs if no letter is entered and AUR and repo if
there's a letter
2019-11-04 17:32:52 +00:00
morganamilo 12312c8aa0
Remove -F in fish completion
This flag is only in fish-git, making it broken for most people.
2019-10-30 02:21:12 +00:00
Akatsuki e36fda0f5a
completions/fish: refine from pacman 5.2.0 and yay 9.4.2 2019-10-26 04:08:06 +08:00
Jguer f8e496457c
fixed some completions for bash and zsh. Closer to pacman 5.2 2019-10-25 12:01:33 +01:00
Akatsuki 58a9c78033
completions/fish: update for pacman 5.2
`-F`:
    Remove `-s --search`
    Remove `-o --owns`
    Add    `-x --regex`
`-S -U`:
    Remove `--force`
    Add    `--overwrite`
and another fix:
    `-Qo` remove `-f` in complete
    `-U`  add `.zst` zstd completion
2019-10-24 08:20:06 +08:00
Tom Swartz 81dcc339e0
Fix typo in completion text 2019-10-09 10:15:20 -04:00
Andrew Shark 1901138e4c removed clutter from completion array 2019-09-12 09:44:39 +01:00
koksnuss 737ed78eb1 fix typo 2019-02-18 23:39:23 +01:00
Eric Engestrom ebf48ffa1a add bash completion for -G,--getpkgbuild 2019-01-07 21:30:00 +00:00
morganamilo 4cc57dd970
Rename afterclean to cleanafter
This makes more sense and falls in line with the structs value which has
always been cleanafter. afterclean is still useable for compatibility
but is undocumented.
2018-09-27 16:12:43 +01:00
Jguer 13f81c7624
Remove non existant show options and add missing -Pg 2018-09-24 00:17:15 +01:00
morganamilo 0657f7e23f
Complete -f for -G and --print -> --show 2018-08-30 16:09:08 +01:00
morganamilo 5996e28e32
Use tabs and use pacman-conf over config parsing
This makes our zsh completion more similar to pacmans. Making it easier
to view diffs between the two.
2018-08-30 11:32:14 +01:00
morganamilo 127c5e7cb9
Update shell completion for --aururl 2018-08-30 11:06:03 +01:00
morganamilo 1aff6cada0
Don't complete packages for empty string 2018-08-05 23:10:54 +01:00
morganamilo 746a541f7b
Update bash completion
Update bash completion, based of the current pacman bash completion.
Organized to try and keep the yay additions seperate from the main
pacman stuff and unused functions removed.
2018-08-05 23:01:09 +01:00
morganamilo 05587c3a1c
Update zsh completion 2018-07-30 14:28:14 +01:00
morganamilo f9d8d61524
Upbade bash completions 2018-07-30 14:21:49 +01:00
Jguer a592d1aa87
Add completions to fish for series 900
Signed-off-by: Jguer <me@jguer.space>
2018-07-27 12:16:21 +01:00
morganamilo 4f1a46eed8
Add bash and zsh completion for new flags 2018-07-01 17:21:54 +01:00
Jguer 89b5a1b798
Fix invalid uppercasing in flags
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 14:53:48 +01:00
Jguer 52f5c8878f
Add native pacman completions
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 11:59:25 +01:00
Jguer e5bb23d9c6
Include print in noopt 2018-06-19 11:02:11 +01:00
J Guerreiro fbe04c8658
Merge pull request #499 from Jguer/update-fish
Fix some fish completions. Fixes #498. Add missing flags
2018-06-19 10:56:50 +01:00
Jguer 21a8569fb0
Add missing editorflags 2018-06-19 10:54:27 +01:00
Jguer a8d9166113
Fix some fish completions. Fixes #498. Add missing flags 2018-06-19 10:51:10 +01:00
morganamilo 07b3d76a66
Update bash and zsh completion 2018-06-12 21:33:29 +01:00
Jguer 6b7ee97479
add quiet to print options. fish complete 2018-05-20 15:28:43 +01:00
Jonas Thiem 976876961b Add completions for --news 2018-05-06 03:31:09 +02:00