Consistent usage of CLI dry_run?
method (#25116)
This commit is contained in:
parent
3d253b9830
commit
ec9bc7e604
8 changed files with 47 additions and 58 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue