pawnmigrate

module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT

README

pawnmigrate

pawnmigrate updates Pawn projects without hiding what it plans to change.

Install

Download a binary from the release page, or install it with Go:

go install github.com/pawnkit/pawnmigrate/cmd/pawnmigrate@latest

Check the installed version with pawnmigrate --version.

Start with a diff:

pawnmigrate --project . --output diff

If the diff looks right, apply it from a clean Git worktree:

pawnmigrate --project . --apply

Files are checked again before they are written. If a write fails, pawnmigrate tries to restore earlier files. Pawn source is formatted after migration.

To see which rules apply without building a plan:

pawnmigrate --project . --status

The default run includes only migrations marked safe. Pass --allow-unsafe to include changes that need review, then inspect the diff before applying them.

Use --only to run specific migrations:

pawnmigrate --project . --only project.manifest-schema-v1,source.openmp-include --output diff

JSON output is available for tools and CI with --output json. --allow-dirty bypasses the clean-worktree check, but it also makes recovery harder.

Exit code 0 means the command completed, 2 reports invalid input or a migration failure, and 3 reports an output or internal failure.

See migration compatibility for the rules currently shipped.

Contributing

Migration ideas work best as a small before-and-after example. See CONTRIBUTING.md for safety and review expectations.

Directories

Path Synopsis
Package catalog contains built-in migrations.
Package catalog contains built-in migrations.
cmd
pawnmigrate command
Package migrate plans and applies versioned Pawn migrations.
Package migrate plans and applies versioned Pawn migrations.
Package report renders migration plans.
Package report renders migration plans.
Package safety checks workspace mutation prerequisites.
Package safety checks workspace mutation prerequisites.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL