Method: TTY::Command::Printers::Pretty#print_command_start

Defined in:
lib/tty/command/printers/pretty.rb


14
15
16
17
18
# File 'lib/tty/command/printers/pretty.rb', line 14

def print_command_start(cmd, *args)
  message = ["Running #{decorate(cmd.to_command, :yellow, :bold)}"]
  message << args.map(&:chomp).join(" ") unless args.empty?
  write(cmd, message.join)
end