/theway:archive
Move a finished change to changes/archive/ under a dated folder
Use it once the change is implemented, tested, deployed when that applies, and confirmed working.
Usage
/theway:archive <change-id>Example
On my-api, once the full change example's change is done:
/theway:archive add-rate-limitingArchived: <home>/projects/-home-you-code-my-api/changes/archive/YYYY-MM-DD-add-rate-limitingSteps
-
Require an explicit instruction. Archiving moves the folder, so it runs only when you name the change and say to archive it. Signals such as "it's merged" or "ship it" are not enough: it stops and asks.
-
Verify completion. It runs
theway listand shows the task count. If the change is not atN/N tasks done, it shows the open tasks and asks you to fix them or accept an override. A task that is done is ticked withtheway task done. -
Move to the archive:
theway archive <change-id> # only when you accept the remaining open tasks: theway archive <change-id> --forceThe CLI also refuses while a task is open or the change's
change.yamlis invalid, unless--forceis given: the command then shows the error lines it printed and uses--forceonly on your explicit acceptance. It also refuses whenchanges/archive/YYYY-MM-DD-<change-id>/already exists, for example the same change archived twice in one day. -
Confirm: it reports the
Archived: <path>linetheway archiveprints.
Output
The whole change folder (spec.md, change.yaml, design.md, notes.md and any other file) moves to:
<home>/projects/<key>/changes/archive/YYYY-MM-DD-<change-id>/<home> is the folder theway path prints, ~/.theway by default.
See Changes and theway archive.