24 Commits

Author SHA1 Message Date
unilock
7207d4c6a4 github: use regexp2 for advanced regex
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-16 07:04:13 -04:00
comp500
d9db25afdb Update dependencies 2023-01-20 17:38:48 +00:00
comp500
6160c2ac01 Use FlexVer to get largest loader version (fixes Forge default version in init) 2022-11-19 20:25:38 +00:00
comp500
044c34e07c Move to go-modrinth lib (v2 API) and always supply UA in HTTP requests 2022-08-02 02:53:31 +01:00
comp500
3d7793ef9b Update dependencies, remove custom completion command in favour of cobra-generated one 2022-04-19 21:27:11 +01:00
comp500
cdd737839d Automatically download and bundle unwhitelisted mods/files in Modrinth modpacks 2022-03-29 01:02:24 +01:00
Sasha Sorokin
f41235b04c
Fix ignore file inconsistencies (#88)
* Fix ignore file inconsistencies

.packwizignore is supposed to work like .gitignore, yet it fails
miserably at doing so, being able to ignore only global patterns like
*.zip, and failing at patterns like /*.zip.

This commit introduces two changes to fix the issue:

- First, it uses a more up-to-date library. denormal/go-gitignore has
  not been updated since 2018 and has long open issues and pull
  requests, one of which tries to address leading slash ignoring, a-la
  /*.zip. denormal account seems to be abandoned since around the same
  year, so it makes sense to find a new library that does roughly the
  same thing.

  Gladly so, there's actually a library by sabhiram that shares the same
  name (but not the package name itself - which is just ignore - so it
  probably requires aliasing when importing).

- Secondly, it checks relative paths against ignore file instead of the
  absolute ones, which makes it possible to use leading slash (and
  probably some other features) with the new library.

From personal tests, it seems to address most - if not all - of the
inconsistencies. However, since it's a different library more throughout
testing probably wouldn't hurt to make sure it didn't break anything.

* Move dependency to main block
2022-01-23 21:05:34 +00:00
comp500
b628e2762c Switch to better semver library and add pack-format field 2021-10-12 18:51:02 +01:00
comp500
d3f872d63d Update dependencies 2021-06-22 00:21:24 +01:00
TheEpicBlock
b5b9fd6810
Modrinth Support (#11)
Co-authored-by: comp500 <comp500@users.noreply.github.com>
2021-02-16 16:34:52 +00:00
comp500
4d4f0d143e Add cf detect command (experimental but should mostly work) 2020-08-06 22:24:58 +01:00
comp500
5ba9ff5c73 Fix some printfs, clean regexes, switch to fuzzy matching for search 2019-11-01 15:46:50 +00:00
comp500
8956ec9bcb Make import look in more places for packs
Now supports Curse/Twitch instance names
and folders containing minecraftinstance.json or manifest.json
2019-09-20 01:37:38 +01:00
comp500
2b12e2c390 Convert to Title Case
I am aware that this is a somewhat pointless dependency
I don't really care though, it's not *that* big!!
2019-09-18 23:13:58 +01:00
comp500
0d6dfe97f7 Add markdown command 2019-09-18 23:06:49 +01:00
comp500
c772ba3473 Add init command 2019-09-17 21:26:48 +01:00
comp500
4fea7ceebf Switch to cobra/viper 2019-09-16 21:44:40 +01:00
comp500
e3bf7afe33
.packwizignore files 2019-06-16 21:42:12 +01:00
comp500
91693cd3eb
Command to open page in browser; refactoring 2019-06-14 22:35:34 +01:00
comp500
10beffb30c
Add mod searching 2019-06-13 22:54:25 +01:00
comp500
683e125987
Improve import code, add promptui dep 2019-06-13 21:44:49 +01:00
comp500
e410101985
Progress bar for refreshing the index 2019-04-30 17:42:19 +01:00
comp500
5f92843226
Mod loading, disgusting struct parsing 2019-04-27 16:54:27 +01:00
comp500
a531e36713
Initial command system 2019-03-17 15:04:00 +00:00