Skip to content

Add --title alias to tasks new (keep positional primary) - #6

Merged
andreiRS merged 2 commits into
mainfrom
feat/new-title-alias
Jun 9, 2026
Merged

Add --title alias to tasks new (keep positional primary)#6
andreiRS merged 2 commits into
mainfrom
feat/new-title-alias

Conversation

@andreiRS

@andreiRS andreiRS commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Closes #3.

What

Accept --title <title> on tasks new as a compatibility alias for the positional title (gh-parity, scripting). The positional form stays primary.

  • tasks new "do the thing" → primary (unchanged)
  • tasks new --title "do the thing" → alias
  • both given → CONFLICT (mirrors the existing --body/--body-file/--edit mutual exclusion)
  • empty/whitespace --titleINVALID_TITLE via the existing validate path
  • no interactive prompt (agent-first; a blocking prompt would hang non-interactive callers)

Commits

  • green: add --title alias to tasks new — implementation + README
  • refactor(slice): address review — harden --title tests — positive --title+--body coexistence test, and --title with no value → INVALID_TITLE edge test

Testing

Full suite green: 348 pass, 0 fail across 39 files (bun run test). Tests are at the CLI boundary (spawn the binary against a TASKS_HOME tempdir, assert on exit code / stdout / stderr / on-disk state).

🤖 Generated with Claude Code

andreiRS and others added 2 commits June 9, 2026 21:55
--title is a compatibility alias for the positional title (issue #3).
Supplying both is a CONFLICT, mirroring the body-source mutual exclusion.
An empty/whitespace --title validates via the same INVALID_TITLE path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Add --title alias to tasks new (keep positional primary)

1 participant