Skip to content

Commit

Permalink
Merge pull request #7878 from vidusheeamoli/move-utils-to-true
Browse files Browse the repository at this point in the history
sorbet/files.yaml: set utils/tty.rb to true
  • Loading branch information
MikeMcQuaid committed Jul 2, 2020
2 parents 8e69122 + 89605d2 commit 7b20bde
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/sorbet/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ false:
- ./utils/github.rb
- ./utils/notability.rb
- ./utils/popen.rb
- ./utils/tty.rb
- ./utils/user.rb

false:
Expand Down Expand Up @@ -889,6 +888,7 @@ true:
- ./tap_constants.rb
- ./test/support/helper/fixtures.rb
- ./test/support/lib/config.rb
- ./utils/tty.rb
- ./version/null.rb

strict:
Expand Down
36 changes: 36 additions & 0 deletions Library/Homebrew/sorbet/rbi/utils/tty.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# typed: strict

module Tty
include Kernel

sig{ params(string: String).returns(String) }
def strip_ansi(string)
end

sig{ returns(Integer) }
def width()
end

sig{ params(string: String).returns(T.nilable(String)) }
def truncate(string)
end

def append_to_escape_sequence(code)
end

sig{ returns(String) }
def current_escape_sequence()
end

sig{ void }
def reset_escape_sequence!()
end

sig{ returns(String) }
def to_s
end

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

0 comments on commit 7b20bde

Please sign in to comment.