Consistent usage of CLI dry_run? method (#25116)
This commit is contained in:
@@ -15,6 +15,10 @@ module Mastodon::CLI
|
||||
options[:dry_run]
|
||||
end
|
||||
|
||||
def dry_run_mode_suffix
|
||||
dry_run? ? ' (DRY RUN)' : ''
|
||||
end
|
||||
|
||||
def create_progress_bar(total = nil)
|
||||
ProgressBar.create(total: total, format: '%c/%u |%b%i| %e')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user