creator: add zig option

This commit is contained in:
botantony 2025-02-21 15:05:42 +01:00
parent 21714d63a4
commit 35dcf8e362
No known key found for this signature in database
GPG Key ID: 7FE721557EA6AAD6

View File

@ -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 <URL> 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(