0
0
Fork 0

Use shell.indent for list output indentation in CLI area (#31969)

This commit is contained in:
Matt Jankowski 2024-11-07 05:34:13 -05:00 committed by GitHub
parent 68b545ef33
commit e0a44b8317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -10,8 +10,10 @@ module Mastodon::CLI
EmailDomainBlock.where(parent_id: nil).find_each do |entry|
say(entry.domain.to_s, :white)
EmailDomainBlock.where(parent_id: entry.id).find_each do |child|
say(" #{child.domain}", :cyan)
shell.indent do
EmailDomainBlock.where(parent_id: entry.id).find_each do |child|
say(child.domain, :cyan)
end
end
end
end