Skip to content

Commit

Permalink
Merge pull request #1556 from Homebrew/cmd-typed-strict
Browse files Browse the repository at this point in the history
Bump `cmd`s to Sorbet `typed: strict`
  • Loading branch information
issyl0 authored Jan 8, 2025
2 parents 6c7f828 + 5240a7a commit 35a2867
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bundle.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true

homebrew_version = if HOMEBREW_VERSION.present?
Expand Down Expand Up @@ -110,6 +111,7 @@ class BundleCmd < AbstractCommand
named_args %w[install dump cleanup check exec list]
end

sig { override.void }
def run
# Keep this inside `run` to keep --help fast.
require_relative "../lib/bundle"
Expand Down
71 changes: 71 additions & 0 deletions cmd/bundle.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# typed: strict

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

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

sig { returns(T::Boolean) }
def brews?; end

sig { returns(T::Boolean) }
def cask?; end

sig { returns(T::Boolean) }
def casks?; end

sig { returns(T::Boolean) }
def cleanup?; end

sig { returns(T::Boolean) }
def describe?; end

sig { returns(T.nilable(String)) }
def file; end

sig { returns(T::Boolean) }
def force?; end

sig { returns(T::Boolean) }
def formula?; end

sig { returns(T::Boolean) }
def global?; end

sig { returns(T::Boolean) }
def mas?; end

sig { returns(T::Boolean) }
def no_lock?; end

sig { returns(T::Boolean) }
def no_restart?; end

sig { returns(T::Boolean) }
def no_upgrade?; end

sig { returns(T::Boolean) }
def no_vscode?; end

sig { returns(T::Boolean) }
def tap?; end

sig { returns(T::Boolean) }
def taps?; end

sig { returns(T::Boolean) }
def verbose?; end

sig { returns(T::Boolean) }
def vscode?; end

sig { returns(T::Boolean) }
def whalebrew?; end

sig { returns(T::Boolean) }
def zap?; end
end

0 comments on commit 35a2867

Please sign in to comment.