From 0f162e31165f9e0b6bc52cc1c3d5f846d01821e4 Mon Sep 17 00:00:00 2001 From: Anastasiya Dyachenko Date: Wed, 17 Oct 2018 23:11:33 +0300 Subject: [PATCH] fix io color formatting (#571) --- lib/mix/lib/releases/overlays.ex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/mix/lib/releases/overlays.ex b/lib/mix/lib/releases/overlays.ex index 0f82618c..bcb3fba7 100644 --- a/lib/mix/lib/releases/overlays.ex +++ b/lib/mix/lib/releases/overlays.ex @@ -77,8 +77,8 @@ defmodule Mix.Releases.Overlays do with {:ok, path} <- template_str(path, vars), _ <- Shell.debug( - "Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <> - " dst: #{Path.relative_to_cwd(path)}" + "#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <> + " dst: #{Path.relative_to_cwd(path)}#{IO.ANSI.reset()}" ), expanded <- Path.join(output_dir, path), :ok <- File.mkdir_p(expanded), @@ -90,9 +90,9 @@ defmodule Mix.Releases.Overlays do {:ok, to} <- template_str(to, vars), _ <- Shell.debug( - "Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <> + "#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <> " src: #{Path.relative_to_cwd(from)}\n" <> - " dst: #{Path.relative_to_cwd(to)}" + " dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}" ), expanded_to <- Path.join(output_dir, to), :ok <- File.mkdir_p(Path.dirname(expanded_to)), @@ -105,9 +105,9 @@ defmodule Mix.Releases.Overlays do {:ok, to} <- template_str(to, vars), _ <- Shell.debug( - "Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <> + "#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <> " src: #{Path.relative_to_cwd(from)}\n" <> - " dst: #{Path.relative_to_cwd(to)}" + " dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}" ), expanded_to <- Path.join(output_dir, to), _ <- File.rm(expanded_to), @@ -124,8 +124,8 @@ defmodule Mix.Releases.Overlays do expanded_to <- Path.join(output_dir, to), _ <- Shell.debug( - "Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <> - " src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}" + "#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <> + " src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}#{IO.ANSI.reset()}" ), :ok <- File.mkdir_p(Path.dirname(expanded_to)), :ok <- File.write(expanded_to, templated),