Skip to content

Commit

Permalink
Update wording in CliFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Nov 15, 2024
1 parent 5a55b46 commit 026040f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/recode/cli_formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ defmodule Recode.CLIFormatter do
defp format_tasks_stats(config, time) do
executions = length(Keyword.get(config, :times, []))

Escape.puts([:info, "Executed #{executions} tasks in #{format_time(time)}s."], config)
Escape.puts([:info, "Completed #{executions} tasks in #{format_time(time)}s."], config)
end

defp format_results(project, config) do
Expand Down
26 changes: 13 additions & 13 deletions test/recode/cli_formatter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Recode.CLIFormatterTest do
end)

assert output |> strip_esc_seq() == """
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Everything ok
"""
Expand Down Expand Up @@ -66,7 +66,7 @@ defmodule Recode.CLIFormatterTest do
3 3 |end
4 4 |
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Updated 1 file
Everything ok
Expand Down Expand Up @@ -116,7 +116,7 @@ defmodule Recode.CLIFormatterTest do
3 3 |end
4 4 |
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 2 (.ex: 2)
Updated 2 files
Everything ok
Expand Down Expand Up @@ -148,7 +148,7 @@ defmodule Recode.CLIFormatterTest do
Updates: 2
Changed by: test, test
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Updated 1 file
Everything ok
Expand Down Expand Up @@ -218,7 +218,7 @@ defmodule Recode.CLIFormatterTest do
Changed by: test
Moved from: foo.ex
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Moved 1 file
Everything ok
Expand All @@ -244,7 +244,7 @@ defmodule Recode.CLIFormatterTest do
File: foo.ex
New file
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Created 1 file
Everything ok
Expand All @@ -270,7 +270,7 @@ defmodule Recode.CLIFormatterTest do
File: foo.ex
New file, created by Test
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Created 1 file
Everything ok
Expand Down Expand Up @@ -306,7 +306,7 @@ defmodule Recode.CLIFormatterTest do
[foo 1/2] do not do this
[bar 2/3] no no no
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Found 2 issues
"""
Expand Down Expand Up @@ -343,7 +343,7 @@ defmodule Recode.CLIFormatterTest do
[foo 2/3] no
[foo 3/1] no
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Found 3 issues
"""
Expand Down Expand Up @@ -380,7 +380,7 @@ defmodule Recode.CLIFormatterTest do
[foo 2/2] no
[foo 2/3] no
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Found 3 issues
"""
Expand Down Expand Up @@ -423,7 +423,7 @@ defmodule Recode.CLIFormatterTest do
Version 1/2 [foo 1/2] do not do this
Version 1/2 [bar 2/3] no no no
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Updated 1 file
Found 2 issues
Expand Down Expand Up @@ -458,7 +458,7 @@ defmodule Recode.CLIFormatterTest do
Execution of the Test task failed with error:
Error Message
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Found 1 issue
"""
Expand Down Expand Up @@ -511,7 +511,7 @@ defmodule Recode.CLIFormatterTest do
end)

assert output |> strip_esc_seq() == """
Executed 0 tasks in 0.01s.
Completed 0 tasks in 0.01s.
Files processed: 1 (.ex: 1)
Everything ok
"""
Expand Down

0 comments on commit 026040f

Please sign in to comment.