packwiz-modlist

Crates.iopackwiz-modlist
lib.rspackwiz-modlist
version1.5.3
sourcesrc
created_at2022-04-10 14:43:59.649794
updated_at2022-07-09 01:25:13.585289
descriptionCreates a modlist from packwiz
homepagehttps://github.com/Ricky12Awesome/packwiz-modlist
repositoryhttps://github.com/Ricky12Awesome/packwiz-modlist
max_upload_size
id565118
size89,244
Ricky12Awesome (Ricky12Awesome)

documentation

README

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

Commit count: 52

cargo fmt