trak undo
Reverts a previously completed curriculum module back to pending in trak.json.
Command Overview
Allows developers to reset exercises for revision or practice. Recalculates workspace completion metrics automatically. Supports aliases 'trak reset' and 'trak unmark'.
Smart Module Resolution (No Full Names Required)
Prefix & Fuzzy MatchingTyping or copying full folder names like 00-setup-toolchain-and-first-program is completely optional. Trak CLI automatically resolves module targets through 4 multi-tier matching rules:
Type unpadded numbers or numeric prefixes. Trak normalizes leading zeros and trailing hyphens.
Terminal tab-completion with relative paths and trailing slashes (.\ or /) is cleanly sanitized.
Type any distinct keyword or topic from the module name. Case-insensitive substring matching.
test), Trak stops execution safely, displays all matching module candidates in your terminal, and prompts you to specify.Execution Lifecycle
Available Flags
Show undo command help.
Usage Examples
Reverts Module 01 back to pending status.
Reverts Module 00 back to pending status using prefix with hyphen.
Resets Module 00 using the reset alias.
Resets module containing 'goroutines' using keyword substring.
Unmarks Module 02 using the unmark alias.
Important Technical Guidelines
Like 'verify' and 'done', 'undo' accepts unpadded numbers ('1'), padded numbers ('01'), prefixes with hyphens ('01-'), keywords, or tab-completed paths. You never need to write the complete folder name.
Running 'trak undo' only updates the boolean flag in trak.json. It never modifies or deletes your source code or exercise files.