Skip to content

Commit 4ce2b8c

Browse files
committed
style: reformat code per houndci-bot suggestions
1 parent d3f0d41 commit 4ce2b8c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/tty/command.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def initialize(**options)
5858
@tag = options[:tag]
5959
@printer_name = options.fetch(:printer) { :pretty }
6060
@dry_run = options.fetch(:dry_run) { false }
61-
@printer = use_printer(@printer_name, color: @color, uuid: @uuid, tag: @tag)
61+
@printer = use_printer(
62+
@printer_name, color: @color, uuid: @uuid, tag: @tag
63+
)
6264
@cmd_options = {}
6365
@cmd_options[:verbose] = options.fetch(:verbose, true)
6466
@cmd_options[:pty] = true if options[:pty]

spec/unit/run_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"[\e[32m#{uuid}\e[0m] Running \e[33;1mecho hello\e[0m\n",
2525
"[\e[32m#{uuid}\e[0m] \thello\n",
2626
"[\e[32m#{uuid}\e[0m] Finished in x seconds with exit status 0 " \
27-
"(\e[32;1msuccessful\e[0m)\n"
27+
"(\e[32;1msuccessful\e[0m)\n"
2828
])
2929
end
3030

@@ -58,7 +58,7 @@
5858
"[\e[32m#{uuid}\e[0m] Running \e[33;1mruby #{non_zero_exit}\e[0m\n",
5959
"[\e[32m#{uuid}\e[0m] \tnooo\n",
6060
"[\e[32m#{uuid}\e[0m] Finished in x seconds with exit status 1 " \
61-
"(\e[31;1mfailed\e[0m)\n"
61+
"(\e[31;1mfailed\e[0m)\n"
6262
])
6363
end
6464

@@ -121,12 +121,12 @@
121121
"[\e[32m#{uuid}\e[0m] Running \e[33;1mruby #{phased_output}\e[0m\n",
122122
"[\e[32m#{uuid}\e[0m] \t..........\n",
123123
"[\e[32m#{uuid}\e[0m] Finished in x seconds with exit status 0 " \
124-
"(\e[32;1msuccessful\e[0m)\n"
124+
"(\e[32;1msuccessful\e[0m)\n"
125125
])
126126
end
127127

128128
it "does not persist environment variables",
129-
unless: RSpec::Support::OS.windows? do
129+
unless: RSpec::Support::OS.windows? do
130130
output = StringIO.new
131131
command = TTY::Command.new(output: output)
132132

@@ -229,7 +229,7 @@ def generic_colored_log_lines(prefix: nil)
229229
"[\e[32m#{prefix}\e[0m] Running \e[33;1mecho hello\e[0m\n",
230230
"[\e[32m#{prefix}\e[0m] \thello\n",
231231
"[\e[32m#{prefix}\e[0m] Finished in x seconds with exit status 0 " \
232-
"(\e[32;1msuccessful\e[0m)\n"
232+
"(\e[32;1msuccessful\e[0m)\n"
233233
]
234234
else
235235
[

0 commit comments

Comments
 (0)