pry-command_result 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,13 @@ module Kernel
|
|
4
4
|
def command_result(command)
|
5
5
|
output = StringIO.new
|
6
6
|
pager = Pry.config.pager
|
7
|
+
color = Pry.config.color
|
7
8
|
Pry.config.pager = false
|
9
|
+
Pry.config.color = false
|
8
10
|
Pry.run_command(command, output: output, show_output: true)
|
9
11
|
output.string
|
10
12
|
ensure
|
13
|
+
Pry.config.color = color
|
11
14
|
Pry.config.pager = pager
|
12
15
|
output.close
|
13
16
|
end
|