Skip to content

Commit

Permalink
cmd/portable-package: Enable Sorbet at typed: strict level
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Aug 21, 2024
1 parent 2b8c02a commit 0981b79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/portable-package.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 @@ -20,6 +21,7 @@ class PortablePackageCmd < AbstractCommand
named_args :formula, min: 1
end

sig { override.void }
def run
ENV["HOMEBREW_DEVELOPER"] = "1"

Expand Down
11 changes: 11 additions & 0 deletions cmd/portable-package.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# typed: strict

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

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

0 comments on commit 0981b79

Please sign in to comment.