Documentation
¶
Overview ¶
Command migrate-v0 imports a KanArtist v0 repository (Python-era layout) into Store Spec v1 stores. It is a one-time tool kept out of the ka binary, built to be re-run safely until cut-over:
- IDs are deterministic and stable across runs (see transform.go).
- Every file it writes is recorded in <out>/.migrate-v0-state.json. On a re-run it overwrites a file only if the file still has the content it last wrote; files edited since (for example by dogfooding v1) are left alone and reported as conflicts unless --force is given.
- Files it wrote earlier that the v0 source no longer produces are removed (again, only if unmodified). Anything it did not write is never touched.
Usage:
go run ./tools/migrate-v0 --v0 ../kanartist --out ../ka-stores [--layout split|single] [--commit]
Click to show internal directories.
Click to hide internal directories.