Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump cmds to Sorbet typed: strict #1556

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading