lib/tasks/check_all.rb in tanshuku-0.0.20 vs lib/tasks/check_all.rb in tanshuku-1.0.0

- old
+ new

@@ -4,11 +4,11 @@ require "io/console" require "paint" require "pty" class CheckAll - TASKNAMES = %i[rubocop spec steep:check yard:check].freeze + TASKNAMES = %i[rubocop spec yard:check].freeze LINE = Paint["-" * (IO.console or raise).winsize[1], :bold] TITLE_TEMPLATE = Paint["\n#{LINE}\nExecute: %<command>s\n#{LINE}\n\n", :bold] attr_reader :failed_commands @@ -30,10 +30,10 @@ def executor lambda do |taskname| command = "bundle exec rake #{taskname}" outputs = [] - outputs << format(TITLE_TEMPLATE, command:) + outputs << format(TITLE_TEMPLATE, command: command) # Use `PTY.spawn` to get colorized outputs of each command. PTY.spawn(command) do |reader, writer, pid| writer.close