upgrade_control_file
Upgrade legacy BPP control files to current syntax. Preview changes with bpp-lint, then apply fixes and create a backup.
Instructions
Bring a control file written for BPP 2.x/3.x up to current syntax (bpp-lint --diff / --fix).
For users who arrive with an old control file. Call first with
apply=false: nothing is written, and server.upgrade.diff shows the
changes bpp-lint can make by itself (renamed keywords, old value
formats). Show the user the diff. Only after they agree, call again with
apply=true: the file is rewritten in place and the original is kept as
.bak.
Returns the lint_control_file result for the file as it now stands (after
the rewrite when apply=true), plus server.upgrade:
fixes_available: false means bpp-lint has nothing to rewrite.diff: unified diff of the automatic fixes.applied, andbackup(the .bak file) when applied. Automatic fixes are only part of an upgrade: errors left inreport.diagnosticsneed a decision from the user. Make those changes with set_keyword, then lint again untilserver.statusis "valid".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctl | Yes | ||
| apply | No |