| name | template-editing |
| description | Edit ign templates safely. Use when changing files inside template directories such as bun-ts-v1, go-v1, rust-v1, python-v1, or general-v1, especially when template variables or generated template content may change. |
Template Editing
Instructions
When modifying an ign template directory:
- Identify the template root before editing. Template roots contain
ign-template.json.
- Make the requested edits inside the template root.
- Run
ign template update <template-root> after any template file change so ign-template.json variables and hash are refreshed.
- Run
ign template check <template-root> after the update.
- Review the diff and confirm
ign-template.json changed only as expected.
- Report the update and validation results to the user.
Notes
- Do not hand-edit the
hash field in ign-template.json; let ign template update write it.
- If multiple template roots are changed, run
ign template update and ign template check once for each changed template root.
- If
ign template update fails because of an ign bug or unexpected behavior, do not silently work around it. Report the command, expected behavior, actual behavior, and error output so an issue can be filed for https://github.com/tacogips/ign/issues.