Skip to content

Add generate-zap command to create zap stanzas#21633

Merged
p-linnane merged 1 commit intomainfrom
generate-zap-new-cmd
Feb 27, 2026
Merged

Add generate-zap command to create zap stanzas#21633
p-linnane merged 1 commit intomainfrom
generate-zap-new-cmd

Conversation

@p-linnane
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Claude Opus 4.6 created the initial implementation. I reworked it to conform to our existing code style, and verified the paths are real and correct. I also performed local testing with a few casks and had no issues.


For years we've recommended https://github.com/nrlquaker/homebrew-createzap as the way to create zap stanzas for Homebrew/cask. While this external command has been wonderful, it's always bothered me that we had to point to something external for a required stanza. This PR adds a new generate-zap command, so we can create zap stanzas via our own official tooling.

@p-linnane p-linnane requested a review from a team February 26, 2026 23:04
Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane p-linnane force-pushed the generate-zap-new-cmd branch from da58ccf to 8265b79 Compare February 27, 2026 00:02
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Much nicer than having this in Bash.

@p-linnane p-linnane added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 7755e36 Feb 27, 2026
38 checks passed
@p-linnane p-linnane deleted the generate-zap-new-cmd branch February 27, 2026 17:57
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.

2 participants