lib/tty/command/dry_runner.rb in tty-command-0.5.0 vs lib/tty/command/dry_runner.rb in tty-command-0.6.0
- old
+ new
@@ -1,6 +1,7 @@
# encoding: utf-8
+# frozen_string_literal: true
require_relative 'result'
module TTY
class Command
@@ -13,13 +14,13 @@
end
# Show command without running
#
# @api public
- def run!(&block)
+ def run!(*)
cmd.to_command
- message = "#{@printer.decorate('(dry run)', :blue)} "
- message << @printer.decorate(cmd.to_command, :yellow, :bold)
+ message = "#{@printer.decorate('(dry run)', :blue)} " +
+ @printer.decorate(cmd.to_command, :yellow, :bold)
@printer.write(message, cmd.uuid)
Result.new(0, '', '')
end
end # DryRunner
end # Command