aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/utils.rb
blob: 3842e8a83051e3249324b2cf3c4e865ebde9a966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def shell_profile
  # odeprecated "shell_profile", "Utils::Shell.profile"
  Utils::Shell.profile
end

module Tty
  module_function

  def white
    odeprecated "Tty.white", "Tty.reset.bold"
    reset.bold
  end
end

def puts_columns(items)
  odeprecated "puts_columns", "puts Formatter.columns"
  puts Formatter.columns(items)
end

def plural(n, s = "s")
  odeprecated "#plural", "Formatter.pluralize"
  n == 1 ? "" : s
end