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

sorbet/files.yaml: set utils/tty.rb to true #7878

Merged
merged 1 commit into from Jul 2, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/sorbet/files.yaml
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
@@ -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