#minecraft #modding #packwiz

app packwiz-modlist

Creates a modlist from packwiz

7 stable releases

1.5.3 Jul 9, 2022
1.5.2 Jul 8, 2022
1.5.1 Jun 24, 2022
1.2.0 Apr 15, 2022

#379 in Games

23 downloads per month

Apache-2.0

38KB
831 lines

crates.io license

Packwiz ModList

Creates a modlist from packwiz

Install

cargo install packwiz-modlist

Usage

if you run packwizml without any arguments, it will print the output with the default format, you can redirect the output using the -o flag or using > filename

Options

# Displays help
packwizml --help # short: -h

# Prints about this program
packwizml --about

# Sets a project path
# other path options are relative to this by default
# to disable this, add '-O' for output and '-M' for mods
packwizml --path ./ # short: -p

# Sets an output directory
# to disable being relative to '--path' add '-O'
packwizml --output modlist.md # short: -o

# Sets a mods directory
# to disable being relative to '--path' add '-M'
packwizml --mods ./mods # short: -m

# Overwrite output file if it exists
packwizml --force # short: -F

# Prints out all data as json so it can be used in scripts
packwizml --json

# Sets the lagging level
# possible values: Off, Error, Warn, Info, Debug, Trace
# default: Warn
packwizml --log-level=Off # short: -v

# Sets the color mode
# possible values: Auto, Always, Never
# default: Auto
packwizml --color-mode=Auto # short: -c

# Sets a custom format
# default: `- [{NAME}]({URL}) - {DESCRIPTION}\n`
packwizml --format "- [{NAME}]({URL}) - {DESCRIPTION}\n" # short: -f

# Sets how it should sort
# possible values: Name, Title, Slug, Id, None
packwizml --sort-by Name # short: -s

# Sets if sorting should be reverse
packwizml --reverse # short: -r

# Sets the cache file
# default: .packwizml.cache
packwizml --cache .packwizml.cache

Placeholders

Placeholder Description
{INDEX} Gets project index in the list
{NAME}, {TITLE} Gets project name/title
{DESCRIPTION}, {SUMMARY} Gets project description/summary
{URL} Gets project URL
{SLUG} Gets project slug
{ID} Gets project id

Sorting

Type Description
Name, Title Sorts by project name
Slug Sorts by project slug
Id Sorts by project id
None Undetermined

Todo

  • Sorting
  • Use CurseForge official API
  • Automated Tests
  • Packaging outside of cargo
  • Packaging with Completions
  • Caching (to avoid fetching project by url, if same version)
  • Templates (kinda like preset-format)

About Curseforge API

Set CF_API_KEY environment variable

Dependencies

~8–24MB
~325K SLoC