Commit graph

216 commits

Author SHA1 Message Date
jguer 01721c816c
refactor query builder to include AURClient 2022-11-13 14:29:00 +01:00
jguer cc8c0a2366
fix non-prefixed version 2022-11-10 01:48:58 +01:00
jguer 6cbf00c5a7
typos 2022-11-08 01:37:54 +01:00
jguer 742b6ad79c
use aur cache for upgrades 2022-11-08 01:32:21 +01:00
jguer 3fc5d93243
add graph feeding 2022-11-02 00:37:27 +01:00
jguer b5bdcfbd1a
add basic sync upgrade capabilities 2022-11-01 23:48:35 +01:00
jguer 776fc9686a
Merge remote-tracking branch 'origin/next' into jguer/local-pkgbuild-install 2022-10-28 23:58:23 +02:00
jguer d3efb59da3
extract upgrade target adder 2022-10-28 23:58:15 +02:00
jguer ba935ccf95
add support for target install 2022-10-28 00:38:11 +02:00
Norbert Pfeiler 1f49b7e11c
align test numbers, also color expected output (#1815) 2022-10-11 08:39:08 +02:00
jguer f496dbac8b
error refactor 2022-09-20 00:44:06 +02:00
jguer bc4732e9e1
add debug mode 2022-09-20 00:11:10 +02:00
jguer e4fdc9a4d4
readd makedep primitives 2022-09-20 00:01:19 +02: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 c86c460816
fix typos 2022-09-17 14:45:07 +02:00
jguer d646cd6c87
add base to name map 2022-09-17 14:31:54 +02:00
jguer 351e352f64
basic aur install 2022-09-11 23:15:31 +02:00
jguer 4a73dfb0ca
topo sorted map 2022-09-09 17:38:48 +02:00
jguer d53505be37
allow customizing colors and embedding extra info 2022-09-07 01:03:29 +02:00
jguer 0aa18d61d5
cleanup 2022-09-07 00:01:23 +02:00
jguer 95e7542ade
Merge remote-tracking branch 'origin/next' into jguer/local-pkgbuild-install 2022-09-06 23:39:08 +02:00
jguer cadeecc4df
add dep graph for local install 2022-09-06 23:38:47 +02:00
jguer f7286b25ae
add local graph util 2022-09-06 23:25:44 +02:00
jguer 650809eba1
wip 2022-09-04 23:45:40 +02:00
linweiyuan 7ebe64871d
fix(yay): fix -Si alignment when language is Chinese (#1799) (#1803) 2022-08-29 15:33:48 +00:00
jguer a4565b367b
wip 2022-08-23 18:33:40 +02:00
jguer cce21ce0b6
Merge remote-tracking branch 'origin/next' into jguer/local-pkgbuild-install 2022-08-23 17:22:10 +02:00
Jo 714fee0b18
Chore: Cleanup (#1800) 2022-08-22 22:20:09 +00:00
jguer b054828aa8
wip 2022-08-22 23:28:53 +02:00
Jo 2a2040c570
chore: use stdlib vars in code (#1793) 2022-08-14 17:41:54 +00:00
Jo 888fb4b1d0
Fix minor question and locale issues (#1786)
* add missing locales

* use t.Setenv instead of os.Setenv for tests

* locale: present y/n if localisation is not latin. Always accept y/n in every case

* question: use operation info for question

* edge case where localised n is equal to default y

* add tests for basic locales
2022-08-13 22:56:23 +00:00
jguer 1a52da5891
Make provides disabled by default. Add Migration to set provides to disabled 2022-08-05 22:55:54 +02:00
jguer 4d5131d6c7
fixed VCS temp file remove 2022-08-05 18:56:28 +02:00
vqrkxo e0006ec272
feat(aur): add option to limit concurrent downloads (#1768)
* feat(aur): add option to limit concurrent downloads

Adds to config file option 'maxconcurrentdownloads' which if set to
value != 0, limits number of concurrent AUR downloads to specified.
Fixes #1763.

* fix lint issue
2022-06-28 12:05:29 +02:00
vqrkxo 18fbc24e68
fix(cmd): fix support for --defaultconfig (#1767)
This change fixes #1766.
2022-06-27 09:48:34 +02: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
Jguer 44a0a243ed
remove gock from completion package (#1764)
* remove gock from completion package

* fix ci builder

* undo changes to default flow
2022-06-17 16:49:41 +00:00
jguer 5439229c7d
disable noseparatesources by default 2022-06-10 18:31:21 +02:00
Drumstickx 94cff87927
Fix ContinueTask user prompt for locales with uppercase yes (#1735)
* Fix ContinueTask user prompt for locales with uppercase yes

The yes/y strings have to be converted to lowercase to enable matching of
the user input converted to lowercase. Otherwise, locales with uppercase
yes/y strings (e.g., German: `Ja/J`) will never match.

* Addess linter issue

* Remove obsolete lowercase conversion
2022-03-31 14:19:43 +02:00
J Guerreiro b8f054f988
fix(po): Update default po file (#1722)
* update default po file

* fix string
2022-03-07 10:35:20 +01:00
J Guerreiro e4a1f018ea
feat(search): Add fuzzy name matching and mixed sources (#1719)
* fix(alpm): fix callback text

* feat(yay): Add mixed search result

* remove old result structs

* add option for controlling query builder

* only set query builder after parsing args

* add parser args

* update manpage

* write test for results

* write test for results

* mixed source test

* only sort 1 time with every mode
2022-03-06 23:48:15 +00:00
J Guerreiro ae01f8e4a0
feat(config): Add version marker (#1720)
* only run on PRs

* prefer manual tags

* add defaults for tests

* cuddle assignment
2022-03-04 23:30:15 +00:00
xvqxy b52e3cf0d2
fix(aur): -Ss fails on multi arg if no results. (#1716)
This fixes #1674.

If search command included multiple packages and no results were found
in AUR, response from `query.queryAUR` was returned
as nil slice instead of non-nil empty slice and as nil slice is treated
during subsequent validation in `query.SourceQueryBuilder.Results` as
meaning that searching in AUR was not executed, command was failing.
Now empty non-nil slice is returned if results were not found.
2022-02-21 09:14:11 +00:00
Eng Zer Jun 83a257b16b
test: use T.TempDir to create temporary test directory (#1709)
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-11 09:30:54 +01:00
J Guerreiro 7f5a060324
feat(yay): Add support for PACMAN_AUTH (#1706) 2022-02-08 09:39:41 +01:00
jguer 2a3ddafce5
fix(deps): fix conflict line being printed in new line 2022-02-06 10:49:57 +01:00
jguer 0e3affd876
fix(input): fix display in wrong line of number input 2022-02-06 10:44:33 +01:00
J Guerreiro d83c5ca5a1
fix(deps): update deps (#1689) 2022-02-05 14:25:59 +01:00
mh4ckt3mh4ckt1c4s e9d8894a37
Fix(AUR): Fix end of php use on AUR API (#1685)
* Fixed end of php use on AUR API

* Added a / to the end of rpc to respect the AUR RPC doc

* Removed the / due to the "AUR unavailable at this moment" error
2022-02-05 12:56:10 +00:00
jguer 1c22cc491c chore(linting): code lint 2022-01-03 13:46:52 +00:00