cli: Limit scope of ProgressWriter 4b3f0ee6 parent f9426b9e

The ProgressWriter structure uses OutputGuard which has a custom Drop trait implementation that will assure a reset sequence is printed out once we do not need the structure. So it is important that the scope where the ProgressWriter structure lives is limited to the when we need it so this reset sequence is properly emitted prior to printing more messages.

authored by Hubert Lefevre

1
/target/
2
/rendered-docs
3
.direnv
4
.envrc
5
# Generated by nix build, nix-build
6
result
7
# Generated by the insta crate
8
*.pending-snap
9
*.snap*
10
!cli/tests/cli-reference@.md.snap
11
# Per user insta settings.
12
# See https://insta.rs/docs/settings/#tool-config-file for details.
13
.config/insta.yaml
14
# Per user mise config
15
mise.local.toml
16
17
# mkdocs
18
/.venv
19
/.python-version
20
21
# Editor specific ignores
22
.idea
23
.vscode
24
.zed
25
26
# Generated by setting `JJ_TRACE` environment variable.
27
jj-trace-*.json
28
29
# To make working on buck2 easier (#1997, #4413)
30
/buck-out/
31