Skip to content

feat: support --yolo in subcommand position for update and install#25

Merged
alohays merged 1 commit into
mainfrom
feat/yolo-subcommand-position
Mar 20, 2026
Merged

feat: support --yolo in subcommand position for update and install#25
alohays merged 1 commit into
mainfrom
feat/yolo-subcommand-position

Conversation

@alohays
Copy link
Copy Markdown
Owner

@alohays alohays commented Mar 20, 2026

Summary

  • dotfiles update --yolo and dotfiles install --yolo now work (previously the flag was silently ignored in subcommand position)
  • Follows the existing pattern where --skip-apply and --skip-tools are already recognized in both global and subcommand parsers
  • Adds defensive export statements for yolo variables in both run_update() and run_install()
  • Updates dotfiles update --help to document the --yolo flag

Test plan

  • dotfiles install --yolo --dry-run shows "ALL agent tools" + "ALL packages"
  • dotfiles update --yolo --dry-run shows "ALL agent tools" + "ALL packages"
  • dotfiles --yolo update --dry-run still works (regression)
  • --fast / --skip-tools correctly override --yolo tool installation
  • --skip-apply correctly overrides --yolo apply step
  • dotfiles update --help shows --yolo flag
  • All 10 tests pass (pytest tests/test_dotfiles_bin.py -v)

🤖 Generated with Claude Code

Previously `dotfiles update --yolo` silently ignored the flag because
--yolo was only parsed in the global option loop. Users naturally type
the flag after the subcommand, matching how --fast and --skip-tools
already work in both positions.

Add --yolo case arms to run_update() and run_install() argument
parsers, update the update help text, and add four new tests covering
subcommand-position usage and flag-combination overrides.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alohays
Copy link
Copy Markdown
Owner Author

alohays commented Mar 20, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@alohays alohays merged commit 50625ed into main Mar 20, 2026
2 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