panproto-cli-0.6.0 is not a library.
panproto-cli
Command-line interface for panproto. The binary is called schema.
Provides subcommands for schema validation, migration checking, breaking change detection, record lifting, and schematic version control.
Installation
Usage
# Validate a schema against a protocol
# Diff two schemas (use --theory for sort/op/equation-level diff)
# Check a migration (use --typecheck for GAT-level validation)
# Type-check a migration at the GAT level
# Verify a schema satisfies its protocol theory's equations
# Generate minimal test data from a protocol theory
# Simplify a schema by merging equivalent elements
# Initialize a schema repository and commit
# Branch, evolve, merge
# Lift a record through a migration
Subcommands
| Command | Description |
|---|---|
validate |
Validate a schema file against a protocol (also type-checks the protocol theory) |
check |
Check existence conditions for a migration (--typecheck to also GAT-validate the morphism) |
diff |
Diff two schemas and report structural changes (--theory to show sort/op/equation-level diff) |
lift |
Apply a migration to a record |
scaffold |
Generate minimal test data from a protocol theory via free model construction |
normalize |
Simplify a schema by merging equivalent elements via quotient |
typecheck |
Type-check a migration between two schemas at the GAT level |
verify |
Verify a schema satisfies its protocol theory's equations by model checking |
init |
Initialize a .panproto/ repository |
add |
Stage a schema for the next commit |
commit |
Commit staged changes (--skip-verify to bypass GAT equation verification) |
status |
Show working state |
log |
Walk commit history |
show |
Inspect an object |
branch |
Create, list, or delete branches |
tag |
Create, list, or delete tags |
checkout |
Switch branch or detach HEAD |
merge |
Three-way schema merge (--verbose to show pullback overlap detection details) |
rebase |
Replay commits onto another branch |
cherry-pick |
Apply a single commit's migration |
reset |
Move HEAD / unstage / restore |
stash |
Save or restore working state |
reflog |
Show ref mutation history |
bisect |
Binary search for breaking commit |
blame |
Show which commit introduced an element |
gc |
Garbage collect unreachable objects |