2016-06-14 22:31:48 -07:00
|
|
|
def shell_profile
|
2017-04-22 16:28:07 +01:00
|
|
|
# odeprecated "shell_profile", "Utils::Shell.profile"
|
|
|
|
Utils::Shell.profile
|
2016-06-14 22:31:48 -07:00
|
|
|
end
|
2016-10-01 20:15:17 +02:00
|
|
|
|
|
|
|
module Tty
|
|
|
|
module_function
|
|
|
|
|
|
|
|
def white
|
2017-04-22 16:28:07 +01:00
|
|
|
odeprecated "Tty.white", "Tty.reset.bold"
|
2016-10-01 20:15:17 +02:00
|
|
|
reset.bold
|
|
|
|
end
|
|
|
|
end
|
2016-10-02 20:39:43 +02:00
|
|
|
|
|
|
|
def puts_columns(items)
|
|
|
|
odeprecated "puts_columns", "puts Formatter.columns"
|
|
|
|
puts Formatter.columns(items)
|
|
|
|
end
|
2017-03-11 11:31:44 +01:00
|
|
|
|
|
|
|
def plural(n, s = "s")
|
|
|
|
odeprecated "#plural", "Formatter.pluralize"
|
|
|
|
n == 1 ? "" : s
|
|
|
|
end
|