mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 21:08:07 +01:00
Use shell.indent
for list output indentation in CLI area (#31969)
This commit is contained in:
parent
68b545ef33
commit
e0a44b8317
3 changed files with 10 additions and 4 deletions
|
@ -321,7 +321,9 @@ module Mastodon::CLI
|
||||||
|
|
||||||
unless skip_domains.empty?
|
unless skip_domains.empty?
|
||||||
say('The following domains were not available during the check:', :yellow)
|
say('The following domains were not available during the check:', :yellow)
|
||||||
skip_domains.each { |domain| say(" #{domain}") }
|
shell.indent(2) do
|
||||||
|
skip_domains.each { |domain| say(domain) }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,10 @@ module Mastodon::CLI
|
||||||
EmailDomainBlock.where(parent_id: nil).find_each do |entry|
|
EmailDomainBlock.where(parent_id: nil).find_each do |entry|
|
||||||
say(entry.domain.to_s, :white)
|
say(entry.domain.to_s, :white)
|
||||||
|
|
||||||
|
shell.indent do
|
||||||
EmailDomainBlock.where(parent_id: entry.id).find_each do |child|
|
EmailDomainBlock.where(parent_id: entry.id).find_each do |child|
|
||||||
say(" #{child.domain}", :cyan)
|
say(child.domain, :cyan)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -62,7 +62,9 @@ module Mastodon::CLI
|
||||||
failed += 1
|
failed += 1
|
||||||
say('Failure/Error: ', :red)
|
say('Failure/Error: ', :red)
|
||||||
say(entry.full_name)
|
say(entry.full_name)
|
||||||
say(" #{custom_emoji.errors[:image].join(', ')}", :red)
|
shell.indent(2) do
|
||||||
|
say(custom_emoji.errors[:image].join(', '), :red)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue