Skip to content

Commit

Permalink
Change to make output consistent on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 27, 2018
1 parent faea1a9 commit 98d2981
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/tty/commands/new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ def execute(input: $stdin, output: $stdout)
next unless out
out.each_line do |line|
if line =~ /^Initializing git/
install_info << line.dup
install_info << line.rstrip.dup
next
elsif line =~ /^(Gem.*?was successfully created)/
next
end

if !options['no-color']
output.puts color_actions(line)
output.puts color_actions(line.rstrip)
else
output.puts line
output.puts line.rstrip
end
end
end
Expand All @@ -148,8 +148,8 @@ def execute(input: $stdin, output: $stdout)
make_executable
output.puts install_info.join("\n") unless install_info.empty?

output.puts "\n" + @pastel.green("Your teletype project has been created successfully.")
output.puts "\n" + @pastel.green("Run \"teletype help\" for more commands.\n")
output.print "\n" + @pastel.green("Your teletype project has been created successfully.\n")
output.print "\n" + @pastel.green("Run \"teletype help\" for more commands.\n")
end

private
Expand Down

0 comments on commit 98d2981

Please sign in to comment.