Skip to content

Add --no-git/--git flags to CLI project commands#494

Merged
bborn merged 2 commits intomainfrom
cli-non-git-project-support
Mar 4, 2026
Merged

Add --no-git/--git flags to CLI project commands#494
bborn merged 2 commits intomainfrom
cli-non-git-project-support

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Mar 4, 2026

Summary

  • Adds --no-git flag to ty projects create to create non-git projects with worktrees disabled
  • Adds --no-git / --git mutually exclusive flags to ty projects update to toggle the worktree setting
  • Adds use_worktrees to ty projects show output (JSON and text)

Test plan

  • ty projects create foo --path /tmp/foo --no-git creates project with UseWorktrees: false
  • ty projects create bar --path /tmp/bar defaults to UseWorktrees: true
  • ty projects show foo --json includes "use_worktrees": false
  • ty projects update foo --git re-enables worktrees
  • ty projects update foo --no-git --git errors with mutually exclusive message

🤖 Generated with Claude Code

bborn and others added 2 commits March 3, 2026 20:36
Support non-git projects from the CLI by adding:
- `--no-git` flag to `ty projects create` to disable worktrees
- `--no-git` / `--git` flags to `ty projects update` to toggle worktrees
- `use_worktrees` field in `ty projects show` JSON and text output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bborn bborn merged commit eadc69c into main Mar 4, 2026
4 checks passed
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