Skip to content

feat(init): support existing task folder via --tasks-root#6

Merged
HenryLach merged 1 commit into
mainfrom
feat/init-custom-tasks-root
Mar 15, 2026
Merged

feat(init): support existing task folder via --tasks-root#6
HenryLach merged 1 commit into
mainfrom
feat/init-custom-tasks-root

Conversation

@HenryLach
Copy link
Copy Markdown
Owner

@HenryLach HenryLach commented Mar 15, 2026

Summary

Add a first-class taskplane init flag for projects that already have a task folder.

Changes

  • add --tasks-root <relative-path> init option
  • validate that --tasks-root is relative and stays within project root
  • default to skipping example task packets when --tasks-root is provided
  • add --include-examples to opt back into example scaffolding with custom root
  • update CLI help and docs (README, install tutorial, commands reference)
  • update changelog Unreleased

Why

This supports existing setups like docs/task-management without creating an alternate taskplane-tasks/ area by default.

Validation

  • node bin/taskplane.mjs help
  • node bin/taskplane.mjs init --preset full --tasks-root docs/task-management --dry-run --force
  • node bin/taskplane.mjs init --preset full --tasks-root docs/task-management --include-examples --dry-run --force
  • absolute path rejection + conflicting flags rejection
  • markdown relative link check

@HenryLach HenryLach merged commit c175f29 into main Mar 15, 2026
1 check passed
@HenryLach HenryLach deleted the feat/init-custom-tasks-root branch March 15, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant