Skip to content

Commit

Permalink
Disable progress bar and wait bar if --no-input is used
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed May 6, 2023
1 parent f5f9b0e commit f47d24b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/briefcase/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def progress_bar(self):
TextColumn("{task.percentage:>3.1f}%", style="default"),
TextColumn("•", style="default"),
TimeRemainingColumn(compact=True, elapsed_when_finished=True),
disable=not self.enabled,
console=self.print.console,
)

Expand Down Expand Up @@ -406,6 +407,7 @@ def wait_bar(
BarColumn(bar_width=20, style="black", pulse_style="white"),
TextColumn("{task.fields[message]}"),
transient=True,
disable=not self.enabled,
console=self.print.console,
)
# start=False causes the progress bar to "pulse"
Expand Down

0 comments on commit f47d24b

Please sign in to comment.