Commit graph

739 commits

Author SHA1 Message Date
morganamilo ef7e8acb13
Refactor complex map types into their own type
map[string][]string  -> mapStringSlice
mao[string]stringSet -> mapStringSet
2018-05-07 23:42:41 +01:00
Anna 58f23bfe9a
Merge pull request #377 from AlexWayfer/make_upgrade_output_as_table
Make upgrade output as table
2018-05-07 23:05:34 +01:00
Alexander Popov 58283a9799
Make upgrade output as table 2018-05-08 00:41:35 +03:00
J Guerreiro feb3b8b6c7
Merge pull request #385 from PeachIceTea/newsfeed
Get arch package news using --print --news
2018-05-06 04:30:23 +01:00
Jonas Thiem 188df1ac93 Use formatTime for news 2018-05-06 04:25:23 +02:00
Jonas Thiem 2161dace3f Collapsing rss struct 2018-05-06 04:06:58 +02:00
Jonas Thiem 976876961b Add completions for --news 2018-05-06 03:31:09 +02:00
Jonas Thiem 8dd08327b1 Add --news to --print 2018-05-06 02:26:03 +02:00
Anna f9723f67b7
Merge pull request #383 from simon04/date-format
Use ISO 8601 date format (yyyy-mm-dd)
2018-05-04 13:16:21 +01:00
Simon Legner e6dae03329 Use ISO 8601 date format (yyyy-mm-dd) 2018-05-04 12:36:14 +02:00
Anna 5307e97d66
Merge pull request #380 from Morganamilo/fix#379
Add mised filepath.Join() calls
2018-05-03 01:48:37 +01:00
morganamilo ee75de0135
Add mised filepath.Join() calls 2018-05-03 01:47:24 +01:00
J Guerreiro dc10c4b6dd
Fix small indent issue 2018-04-28 17:35:53 +01:00
Jguer 79bfa9fbc8 Fix wrong license on badge
Signed-off-by: Jguer <me@jguer.space>
2018-04-28 17:35:05 +01:00
Jguer 9b351b1779 Remove changelog from README. Update some pictures
We use annotated tags and github releases already
2018-04-28 14:44:23 +01:00
Jguer ba4ef4f51c Use more filepath.Join, standardize separators 2018-04-28 12:15:18 +01:00
J Guerreiro 408f3e138f
Merge pull request #374 from Jguer/fix#373
Fixes #373
2018-04-28 11:57:10 +01:00
Jguer 58772c871b Fixes #373
Signed-off-by: Jguer <me@jguer.space>
2018-04-28 11:53:10 +01:00
Anna 37b08eabf7
Merge pull request #372 from Morganamilo/fixparsercheck
Fix warning by megacheck in parser
2018-04-27 02:49:19 +01:00
morganamilo debe19278a
Fix warning by megacheck in parser 2018-04-27 02:43:10 +01:00
J Guerreiro 8342ca724f
Merge pull request #371 from Jguer/megacheck-lint
Use megacheck to lint project
2018-04-27 02:32:06 +01:00
Jguer d319576303 Use megacheck to lint project
Signed-off-by: Jguer <me@jguer.space>
2018-04-27 01:25:40 +01:00
Jguer 66362aa981 Bump MAJOR_VERSION
This bump reflects the big change introduced with using git cloning.
Therefore we know all versions pre-6 do not use git clone

Signed-off-by: Jguer <me@jguer.space>
2018-04-26 20:53:34 +01:00
Anna a5fa47ffac
Merge pull request #367 from tomswartz07/master
Fix typos
2018-04-23 18:55:55 +01:00
Tom Swartz 39cf61f2fd Clarify Package Ranges in doc 2018-04-23 13:43:17 -04:00
Tom Swartz 579cb28361 Fix typo in docs 2018-04-23 13:29:30 -04:00
Tom Swartz 1c9715dddf Fix typos 2018-04-23 13:06:56 -04:00
Anna c54057931d
Merge pull request #366 from Morganamilo/man
Update man page and tweak usage
2018-04-23 14:49:13 +01:00
morganamilo 99c7b5bb44
Update man page and tweak usage 2018-04-23 02:24:23 +01:00
Jguer 84569ef6d9 Fix completions from using wrong path. Regression introduced in filepath join
Signed-off-by: Jguer <me@jguer.space>
2018-04-21 16:43:12 +01:00
Anna 780f656531
Merge pull request #362 from Morganamilo/fix#359
Prefix aur/ to aur updates
2018-04-17 20:16:35 +01:00
Anna 2d559b874a
Merge pull request #361 from Morganamilo/fixup2
Remove duplicate cmd.Run()
2018-04-17 20:15:03 +01:00
morganamilo 55e7ed8ef7
Remove duplicate cmd.Run()
There was a duplicate cmd.Run() that somehow went unnoticed. It was also
missing an error check, so it was in the code but had no ill effects.
In 86bfacd253 the error check was added.
This caused it to fail every time sure to the cmd already being ran.

Remove the duplicate cmd.Run() altogether.
2018-04-17 20:14:16 +01:00
morganamilo 8ccb5de6ac
Prefix aur/ to aur updates 2018-04-17 19:54:44 +01:00
Anna 5fb61731a3
Merge pull request #360 from Morganamilo/fixup
Small fixups
2018-04-17 18:26:40 +01:00
morganamilo 440004a80c
Fix exist sometimes being false for flags 2018-04-17 18:24:39 +01:00
morganamilo 63471b9ede
Fix misspellings and typos 2018-04-17 18:01:34 +01:00
morganamilo 86bfacd253
Remove unneeded vars and fix missing err check 2018-04-17 17:57:02 +01:00
morganamilo 72eaf6f582
gofmt -s 2018-04-17 17:54:22 +01:00
Anna 6118a9f8b6
Merge pull request #358 from Morganamilo/rmtest
Remove test for formatKeysToImport()
2018-04-17 14:28:43 +01:00
morganamilo 8305631b1d
Remove test for formatKeysToImport()
The recent changes to formatting broke this test. While it would be easy
to go back and fix it, I personaly do not like tests that rely on things
such as formatting or an internet connection. This is why I have removed
the test, I believe the other test for key importing should be more that
sufficient.
2018-04-17 14:24:30 +01:00
Morgana 44ce849cb0
Merge pull request #355 from Morganamilo/fix#354
Add support for -Sc
2018-04-17 13:54:14 +01:00
morganamilo 14454875c5
Update manpage for -Sc 2018-04-17 13:53:37 +01:00
morganamilo 6ab876258b
Updated vendor dependencies 2018-04-17 13:53:37 +01:00
morganamilo 683890c1b8
Add support for -Sc
-Sc will delete cached AUR data from Yay's build dir according to
the `CleanMethod` specified in the Pacman config file.

-Scc will delete all cached AUR data.

Additionally -Sc will also delete all untracked files in the AUR cache.
This will delete things such as downloaded sources and built packages
but will leave directories behind.

This is very usefull because the only reason a directoiry should exist
in the cache is because of downloaded VCS sources. Non VCS sources are
redownloaded every update because when a new version is released a new
tarball has to be downloaded. But VCS sources are never redownloaded,
updates are simply pulled. For this reason the user probably wants to
keep this data as it is still usefull even after building and installing
a package.
2018-04-17 13:53:37 +01:00
morganamilo ef5fda0264
Hanlde double args of mixed short and long types
99% of the time if a user wants to pas an argument twice they would do
`-cc` or `--clean --clean`. Still doing `-c --clean` is still a valid
thing to do. This commits allows getArg() to this properly.
2018-04-17 13:53:37 +01:00
J Guerreiro dccfcb6c69
Merge pull request #357 from AlexWayfer/add_tests_for_upgrade_highlighting
Add more tests for upgrade highlighting
2018-04-17 13:11:43 +01:00
Alexander Popov 6689198623
Add more tests for upgrade highlighting
They are based on `_`, which faced in the `google-musicmanager`
2018-04-17 10:25:21 +03:00
Morgana a79562677d
Merge pull request #356 from Morganamilo/fix#353
Use filepath.Join() for adding paths together
2018-04-17 02:07:45 +01:00
morganamilo 110a905a0c
Use filepath.Join() for adding paths together 2018-04-17 01:32:31 +01:00