Expand description
The state a migration command carries between its steps. What: The state one migration command carries between its steps: the platform, the paths, the journal, the progress sink, the list of files this user may not read, and the helper that runs one tree pass and reports it. Why: The migrate, rollback and remove-old commands share it, so each pass is timed, counted and reported the same way and the unreadable-file list is written the same way after every pass (a kill between passes loses nothing).
In TS you’d write (pseudocode):
class Run { platform; layout; journal; interrupt; say(line); async pass(label, source, destination, options) { ... } }Structs§
- Run
- What:
One command’s working state.
&'a mut dyn FnMut(&str)is a borrowed progress callback that receives one line at a time. Why: See the module description.
Constants§
- INDEX_
LOCK - The path, relative to a checkout, of the lock the migration holds during its last pass.