Skip to content

Commit

Permalink
Add signatures to private CLI methods
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Jun 13, 2022
1 parent 2865afb commit 2db1eaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tapioca/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

module Tapioca
class Cli < Thor
extend T::Sig
include CliHelper
include ConfigHelper
include SorbetHelper
Expand Down Expand Up @@ -332,10 +333,12 @@ def __print_version
end

no_commands do
sig { returns(T::Boolean) }
def self.exit_on_failure?
true
end

sig { void }
def set_environment
ENV["RAILS_ENV"] = ENV["RACK_ENV"] = options[:environment]
end
Expand Down

0 comments on commit 2db1eaa

Please sign in to comment.