Skip to content

feat: support --skip-defaults in the ThemeKit plugin - #25

Merged
rozd merged 1 commit into
mainfrom
feat/plugin-skip-defaults
Nov 4, 2026
Merged

rozd merged 1 commit into
mainfrom
feat/plugin-skip-defaults

Conversation

@rozd

@rozd rozd commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • ThemeKitPlugin now extracts --skip-defaults in both the SwiftPM (CommandPlugin) and Xcode (XcodeCommandPlugin) entry points and forwards it to ThemeKitGeneratorCLI.
  • Previously the CLI supported the flag, but the plugin ignored it silently, so regenerating always overwrote the hand-edited Theme+Defaults.swift.
  • README: notes how to pass the flag when regenerating.

Test plan

  • swift build / swift test pass (220 tests)
  • End-to-end in a scratch package depending on this repo:
    • swift package generate-theme → generates Theme+Defaults.swift
    • edit the file, run generate-theme --skip-defaults → file not in output list, edits preserved
    • run generate-theme without the flag → file overwritten

🤖 Generated with Claude Code

The CLI already supported --skip-defaults, but ThemeKitPlugin never
extracted or forwarded it, so passing the flag to the plugin was
silently ignored and Theme+Defaults.swift was overwritten on every run.
Both the SwiftPM and Xcode entry points now accept the flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both plugin entry points correctly forward the flag that preserves edited defaults.

Summary

The plugin now forwards --skip-defaults from both SwiftPM and Xcode to the existing CLI.

  • Theme generation can leave your edited defaults file alone.

Reviews (1) · Last reviewed commit: "feat: forward --skip-defaults from the p..." · Reviewed by Greptile

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.92%. Comparing base (2759540) to head (0b9bfe3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   98.92%   98.92%           
=======================================
  Files          35       35           
  Lines        2229     2229           
=======================================
  Hits         2205     2205           
  Misses         24       24           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rozd
rozd merged commit 30d9d10 into main Nov 4, 2026
4 checks passed
@rozd
rozd deleted the feat/plugin-skip-defaults branch November 4, 2026 16:07
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