Command overview for init.
Purpose:
- create
.recur/config.tomlfrom detected project lanes and separators - analyze an existing project (
--analyze) and suggest config updates
recur initCreates:
.recur/config.tomlwith detected lanes (for examplesrc/,docs/,julia-tests/).recur/checkpoints.md(if missing)
recur init --analyze
recur init --analyze --jsonReports:
- detected lanes and their suggested separators
- additions missing from config
- separator updates for configured lanes
- missing directories referenced by config
recur init is safe by default. If .recur/config.toml already exists, it exits with code 2 and does not overwrite.
Use:
recur init --forceonly when you intentionally want to regenerate config.
After recur init, commands that take -d can auto-resolve separator by directory from .recur/config.toml.
Example:
recur files "main_command_**" -d src/ --countworks without explicitly passing --sep _ when src/ is mapped to _ in config.