Add --force switch for contributions command

This commit is contained in:
Douglas Eichelberger
2025-09-15 15:24:07 -07:00
parent 18ba182c50
commit 0c185cb329
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -52,6 +52,8 @@ module Homebrew
description: "Date (ISO 8601 format) to stop searching contributions."
switch "--csv",
description: "Print a CSV of contributions across repositories over the time period."
switch "--force",
description: "Force the installation of missing taps."
conflicts "--organisation", "--repositories"
conflicts "--organisation", "--team"
conflicts "--user", "--team"
@@ -234,7 +236,7 @@ module Homebrew
repository_path, tap = repository_path_and_tap(repository)
if repository_path && tap && !repository_path.exist?
opoo "Repository #{repository} not yet tapped! Tapping it now..."
tap.install
tap.install(force: args.force?)
end
repository_full_name = tap&.full_name
@@ -14,6 +14,9 @@ class Homebrew::DevCmd::Contributions::Args < Homebrew::CLI::Args
sig { returns(T::Boolean) }
def csv?; end
sig { returns(T::Boolean) }
def force?; end
sig { returns(T.nilable(String)) }
def from; end