Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
The --update-docs messages should use the STDERR (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
karreiro authored Mar 15, 2023
1 parent bf8f05f commit 3fb2e38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/theme_check/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def check(out_stream = STDOUT)
def update_docs
return unless @update_docs

puts 'Updating documentation...'
STDERR.puts 'Updating documentation...'

ThemeCheck::ShopifyLiquid::SourceManager.download
end
Expand Down
4 changes: 2 additions & 2 deletions test/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def test_update_docs
YAML
)

out, _err = capture_io do
_out, err = capture_io do
ThemeCheck::Cli.parse_and_run!([storage.root, '--update-docs'])
end

assert_includes(out, 'Updating documentation...')
assert_includes(err, 'Updating documentation...')
end

def test_auto_correct
Expand Down

0 comments on commit 3fb2e38

Please sign in to comment.