lib/git/lint/cli/actions/analyze/branch.rb in git-lint-7.5.0 vs lib/git/lint/cli/actions/analyze/branch.rb in git-lint-8.0.0
- old
+ new
@@ -7,11 +7,11 @@
module CLI
module Actions
module Analyze
# Handles analyze action for branch.
class Branch < Sod::Action
- include Git::Lint::Import[:kernel, :logger]
+ include Git::Lint::Import[:logger, :kernel, :io]
description "Analyze current branch."
on %w[-b --branch]
@@ -31,10 +31,10 @@
attr_reader :analyzer
def parse
analyzer.call do |collector, reporter|
- kernel.puts reporter
+ io.puts reporter
kernel.abort if collector.errors?
end
end
end
end