51 Commits

Author SHA1 Message Date
JaegyuDev
9889b48b0d
Add --side argument to filter list command (#256)
* added list command filter by side

* changed error logging for --side flags

* removed len checks on side flags

* removed comments previous commit made useless
2023-09-16 17:26:10 +01:00
comp500
66e9e1de78 Tweak list output format, sort by lowercase name 2023-08-26 15:57:13 +01:00
Noah Reinalter
1cd848264d
Optionally show filenames in list output (#248) 2023-08-26 15:54:00 +01:00
comp500
4c23e264b0 Clean up code, filter version numbers for NeoForge as well as Forge
NeoForge doesn't seem to have an update checker JSON yet, so we can't determine
the recommended version
2023-07-30 15:09:18 +01:00
comp500
beef8c6692 Add prefix to env variable lookup, replace . with _
e.g. $PACKWIZ_INIT_REINIT is equivalent to the -r flag
2023-07-06 04:56:58 +01:00
comp500
e8c28ae57e Add hold/unhold aliases, tweak help msg, remove unused param 2023-06-25 01:41:01 +01:00
joeyak
dffdbc9b80
Add pin and unpin commands/updated update command to work with pin & unpin (#234)
* Add pin and unpin commands/updated update command to work with pin & unpin

* Inline cobra functions
2023-06-25 01:38:03 +01:00
comp500
4fb1f1b59d Index fixes and performance improvements (fixes #223, #224)
- Fixed creation of duplicate index entries when importing from CurseForge (fixes #224)
- Automatically remove duplicates in index
- Fixed `packwiz serve` with a custom `--pack-root` argument (fixes #223)
- Fixed `packwiz serve` with a custom index.toml location
- Cleaned up internal serving code, added comments and better errors
- Refactored path handling code
- Improved refreshing/exporting performance
- Factored out duplicated exporting logic
- Replaced GetAllMods calls with cleaner LoadAllMods calls and made the former private
- Improved variable names in update command
- Improved handling of aliassed files
- Changed CheckUpdate to take references to metadata
- Removed the ability to use an absolute path to the index file (that probably didn't work anyway)
- Behaviour change: order of entries in exported files may be random
2023-05-29 23:15:55 +01:00
comp500
bfe570a6a2 Allow mc-version-prefixed Forge version in init command 2023-04-13 02:39:21 +01:00
Matt Artist
539be71d11
Add migrate command (#207)
* Add base and loader command

* Support updating to latest

* Support explicit fabric versions

* Support explicit Forge version

* Support quilt

* Add support for updating Minecraft

* Add support for Forge recommended

* Fix Forge version sorting

* Various fixes

* Add documentation to the use

* More suggestions
2023-04-13 02:23:37 +01:00
comp500
aeae76a569 Linter fixes (error handling, unused constants, raw strings) 2023-03-10 17:06:48 +00:00
comp500
d38d279d98 Prefer game versions according to acceptable versions list (fixes #181)
The acceptable versions list should now be specified in order of preference, where the last version is the most preferable Minecraft version
2023-02-14 16:10:06 +00:00
comp500
672d22d0dd Fix deprecated uses of ioutil 2023-01-20 18:43:46 +00:00
comp500
79d3ed3957 Reword "mod"/"addon"/"install" to clearer terms across all commands (fixes #138) 2023-01-20 18:39:23 +00:00
comp500
a25a651748 Remove duplicate (default "") in flag desc (fixes #172) 2022-12-13 13:27:50 +00:00
comp500
791bfcc30f Force-disable no-internal-hashes mode when serving (fixes #166) 2022-11-28 05:21:10 +00:00
comp500
11671421ac -y/--yes flag for non-interactive mode (fixes #46)
Also makes Modrinth auto-accept search results with only 1 result, to be
consistent with CurseForge.
2022-08-25 04:47:18 +01:00
Maxim Slipenko
4c68c7240f
Add index page to the development server (#146)
* Add index page to dev server

* Add target=_blank to packwiz-installer link

* Improve sentence about packwiz-installer

Co-authored-by: comp500 <comp500@users.noreply.github.com>
2022-08-19 04:17:28 +01: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
5c02b31e20 Add rm as an alias for remove 2022-08-01 17:10:07 +01:00
Morgane Austreelis
d051932bbb
Add --cache flag to export commands (#133)
This option allow overriding the cache directory

An 'cache.directory' entry has also been added in the config
2022-06-09 00:36:24 +01:00
Aaron Harabedian
f47d71f203
Added command to list all mods (#125) 2022-05-31 17:02:42 +01:00
comp500
0f3096e251 Use the correct directories for non-mod files; use .pw.toml extension
The mods-folder option is now replaced with two new options: meta-folder and meta-folder-base
This allows non-mod files to use the correct directory based on their category; with correct
import of resource packs/etc from CurseForge packs, and the ability to override this behaviour.
To improve the reliability of packwiz metadata file marking (in the index), new files now use .pw.toml
as the extension - any extension can be used, but .pw.toml will now be automatically be
marked as a metafile regardless of folder, so you can easily move metadata files around.
Existing metadata files will still work (as metafile = true is set in the index); though in
the future .pw.toml may be required.
2022-05-16 21:06:10 +01:00
comp500
5a48ddeb66 Create local store functions 2022-05-14 19:38:32 +01:00
comp500
f1eb34d444 Quilt support 2022-04-20 20:58:49 +01:00
comp500
4abf3340a1 Move to packwiz org 2021-12-28 16:28:34 +00:00
comp500
492340dfe6 Better error messages for mod update errors 2021-12-02 20:00:07 +00:00
comp500
96a2d5fdf6 Update loader/mc versions from imported CF packs (fixes #70)
also refactored internal modloader handling!
2021-11-22 14:44:08 +00:00
comp500
b628e2762c Switch to better semver library and add pack-format field 2021-10-12 18:51:02 +01:00
comp500
d7851bd7fd ExecuteC already prints errors (fixes #55) 2021-09-24 14:27:09 +01:00
comp500
896b9548de Fabric filtering and native export for CurseForge 2021-06-15 03:09:49 +01:00
comp500
76460c5414 Remove pack-root, fix serve command (fixes #39)
index.toml is now the pack root - if you want to replicate
what the pack-root option would have provided, just move
your index.toml (and update the path in pack.toml)
2021-06-13 19:15:33 +01:00
comp500
c6b99a50e2 Support any case for modloader input (fixes #36) 2021-06-03 22:45:02 +01:00
comp500
49d7b26b2e Add no-internal-hashes mode 2021-05-04 19:56:56 +01:00
comp500
877c7d1b02 Add Jumploader to Fabric packs for CurseForge automatically (fixes #5) 2020-11-28 18:10:00 +00:00
ThetaDev
a87f7b50f0
Added author + pack version (#6)
* Added author + pack version

* Remove unnecessary binary

* Apply suggestions, clean up somewhat

Co-authored-by: comp500 <comp500@users.noreply.github.com>
2020-11-28 17:10:29 +00:00
comp500
61d92c5673 Change default to fabric, remove yarn from init 2020-10-08 20:35:04 +01:00
comp500
68486ca703 Use --all (or -a) flag instead of * for updating all mods 2020-05-11 17:38:36 +01:00
comp500
8aa5e5c7c4 Strip version prefixes from forge versions 2020-04-07 20:37:52 +01:00
comp500
a553c3ce08 Fix unhandled error warnings, error messages (except import.go) 2019-11-15 22:28:14 +00:00
comp500
e51537c677 Run cleanup on all files 2019-11-15 19:13:42 +00:00
comp500
5ba9ff5c73 Fix some printfs, clean regexes, switch to fuzzy matching for search 2019-11-01 15:46:50 +00:00
comp500
1dc5618bca Add support for multiple components in mod loaders 2019-09-19 02:17:28 +01:00
comp500
79a62c735e Use UserConfigDir instead of $HOME
go-homedir???! I be using go 1.13 now
2019-09-19 01:22:59 +01:00
comp500
44cd63923e Handle filepath/path translation properly 2019-09-19 00:16:09 +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
36093f0e2a Whoops 2019-09-18 17:48:31 +01:00
comp500
b48f89d67c Add serve command 2019-09-18 17:32:37 +01:00
comp500
3aa604de42 Light loader support 2019-09-17 21:43:51 +01:00
comp500
c772ba3473 Add init command 2019-09-17 21:26:48 +01:00