Skip to content

Commit

Permalink
Merge pull request #181950 from Homebrew/srb-cmd
Browse files Browse the repository at this point in the history
cmd*: Bump to Sorbet `typed: true` or `typed: strict`
  • Loading branch information
p-linnane committed Aug 21, 2024
2 parents 7270362 + 582799c commit fcab781
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/aspell-dictionaries.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true

require "abstract_command"
Expand All @@ -15,6 +16,7 @@ class AspellDictionariesCmd < AbstractCommand
EOS
end

sig { override.void }
def run
dictionary_url = "https://ftp.gnu.org/gnu/aspell/dict"
dictionary_mirror = "https://ftpmirror.gnu.org/aspell/dict"
Expand Down
1 change: 1 addition & 0 deletions cmd/check-ci-status.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true

require "abstract_command"
Expand Down
14 changes: 14 additions & 0 deletions cmd/check-ci-status.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# typed: strict

class Homebrew::Cmd::CheckCiStatusCmd
sig { returns(Homebrew::Cmd::CheckCiStatusCmd::Args) }
def args; end
end

class Homebrew::Cmd::CheckCiStatusCmd::Args < Homebrew::CLI::Args
sig { returns(T::Boolean) }
def cancel?; end

sig { returns(T::Boolean) }
def long_timeout_label?; end
end
2 changes: 2 additions & 0 deletions cmd/determine-rebottle-runners.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true

require "abstract_command"
Expand All @@ -18,6 +19,7 @@ class DetermineRebottleRunnersCmd < AbstractCommand
hide_from_man_page!
end

sig { override.void }
def run
formula = Formula[args.named.first]
timeout = args.named.second.to_i
Expand Down

0 comments on commit fcab781

Please sign in to comment.