diff --git a/cmd/bundle.rb b/cmd/bundle.rb index ab3d5b1ee..23355d9a3 100755 --- a/cmd/bundle.rb +++ b/cmd/bundle.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true homebrew_version = if HOMEBREW_VERSION.present? @@ -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" diff --git a/cmd/bundle.rbi b/cmd/bundle.rbi new file mode 100644 index 000000000..b77e25c9d --- /dev/null +++ b/cmd/bundle.rbi @@ -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