From 35dcf8e3623f0b663599f3961935244324ead669 Mon Sep 17 00:00:00 2001 From: botantony Date: Fri, 21 Feb 2025 15:05:42 +0100 Subject: [PATCH] creator: add zig option --- Library/Homebrew/dev-cmd/create.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index ad73d5b4ee..830d995c8f 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -40,6 +40,8 @@ module Homebrew description: "Create a basic template for a Ruby build." switch "--rust", description: "Create a basic template for a Rust build." + switch "--zig", + description: "Create a basic template for a Zig build." switch "--no-fetch", description: "Homebrew will not download to the cache and will thus not add its SHA-256 " \ "to the formula for you, nor will it check the GitHub API for GitHub projects " \ @@ -58,7 +60,7 @@ module Homebrew description: "Ignore errors for disallowed formula names and names that shadow aliases." conflicts "--autotools", "--cmake", "--crystal", "--go", "--meson", "--node", - "--perl", "--python", "--ruby", "--rust", "--cask" + "--perl", "--python", "--ruby", "--rust", "--zig", "--cask" conflicts "--cask", "--HEAD" conflicts "--cask", "--set-license" @@ -173,6 +175,8 @@ module Homebrew :ruby elsif args.rust? :rust + elsif args.zig? + :zig end fc = FormulaCreator.new(