Use Mix.Shell.IO helpers to print msgs to the terminal

This commit is contained in:
Claudio Ortolina
2024-12-01 15:31:51 +00:00
parent 53d2082ad0
commit 46b912709d
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ defmodule Mix.Tasks.MusicLibrary.Prod.Helpers do
if flyctl_installed?() do
System.cmd("flyctl", ["ssh", "console", "--command", command], into: IO.stream())
else
IO.puts("Please install flyctl first")
Mix.Shell.IO.error("Please install flyctl first")
System.halt(1)
end
end
@@ -12,7 +12,7 @@ defmodule Mix.Tasks.MusicLibrary.Prod.Helpers do
if flyctl_installed?() do
System.cmd("flyctl", ["ssh", "sftp", "get", remote_path, local_path], into: IO.stream())
else
IO.puts("Please install flyctl first")
Mix.Shell.IO.error("Please install flyctl first")
System.halt(1)
end
end