#!/usr/bin/env fish # FKRPG audit — Fish wrapper # Usage: # fish tools/audit.fish # text audit (offline) # fish tools/audit.fish --check-outdated # query Modrinth for outdated optimization/worldgen # fish tools/audit.fish --json # JSON output # fish tools/audit.fish --write-manifest # bump last_audit/generated_at after packwiz refresh set -l repo (dirname (dirname (realpath (status filename)))) set -l script "$repo/tools/audit.py" # default to server_pack set -l args --pack "$repo/server_pack" # pass through all args for a in $argv set -a args $a end python3 $script $args set -l ec $status if test $ec -ne 0 echo "audit: exit $ec — see errors above" >&2 end exit $ec