lib/dogids/base.rb in dogids-cli-0.0.7 vs lib/dogids/base.rb in dogids-cli-0.0.8
- old
+ new
@@ -47,10 +47,12 @@
end
# Print a message to the terminal about a command that's going to run.
# @param command [String]
def print_command(command)
- print_wrapped(command, indent: 7)
+ command.split("\n").each do |line|
+ print_wrapped(line, indent: 7)
+ end
end
# Run a command with Bash after first printing the command to the terminal.
# @param command [String]
def run_command(command)