ReviewOS

also looking at this

stacks/buddy

fix(cli): let packages.strategy reach its flags, and sync CLAUDE.md's embedded README

#1441
Merged glennmichael123 wants to merge fix/strategy-flag-default into main
4 files +182 -64
bin/cli.tsmodified+4-4
Changes to bin/cli.ts
@@ -657,7 +657,7 @@ cli
657657 .option('--verbose, -v', 'Enable verbose logging')
658658 .option('--packages <names>', 'Comma-separated list of packages to check')
659659 .option('--pattern <pattern>', 'Glob pattern to match packages')
660 .option('--strategy <type>', 'Update strategy: major|minor|patch|all', { default: 'all' })
660 .option('--strategy <type>', 'Update strategy: major|minor|patch|all (default: packages.strategy from config, else all)')
661661 .option('--ignore <names>', 'Comma-separated list of packages to ignore')
662662 .option('--respect-latest', 'Respect "latest", "*", and other dynamic version indicators (default: true)')
663663 .option('--no-respect-latest', 'Allow updating "latest", "*", and other dynamic version indicators')
@@ -847,7 +847,7 @@ cli
847847cli
848848 .command('update', 'Update dependencies and create PRs')
849849 .option('--verbose, -v', 'Enable verbose logging')
850 .option('--strategy <type>', 'Update strategy: major|minor|patch|all', { default: 'all' })
850 .option('--strategy <type>', 'Update strategy: major|minor|patch|all (default: packages.strategy from config, else all)')
851851 .option('--ignore <names>', 'Comma-separated list of packages to ignore')
852852 .option('--dry-run', 'Preview changes without making them')
853853 .option('--reviewers <names>', 'Comma-separated reviewers to assign (overrides pullRequest.reviewers)')
@@ -1766,7 +1766,7 @@ cli
17661766cli
17671767 .command('check <packages...>', 'Check specific packages for updates')
17681768 .option('--verbose, -v', 'Enable verbose logging')
1769 .option('--strategy <type>', 'Update strategy: major|minor|patch|all', { default: 'all' })
1769 .option('--strategy <type>', 'Update strategy: major|minor|patch|all (default: packages.strategy from config, else all)')
17701770 .example('buddy check react typescript')
17711771 .example('buddy check react --verbose')
17721772 .action(async (...args: any[]) => {
@@ -1816,7 +1816,7 @@ cli
18161816cli
18171817 .command('schedule', 'Run automated dependency updates on schedule')
18181818 .option('--verbose, -v', 'Enable verbose logging')
1819 .option('--strategy <type>', 'Update strategy: major|minor|patch|all', { default: 'all' })
1819 .option('--strategy <type>', 'Update strategy: major|minor|patch|all (default: packages.strategy from config, else all)')
18201820 .example('buddy schedule')
18211821 .example('buddy schedule --verbose')
18221822 .example('buddy schedule --strategy patch')