Commit 285cbe3
authored
Ruby CLI: Squelch Processing output when silent is passed in (#464)
Fixes #347
### Without `silent` flag:
```
ruby -I lib exe/herb analyze examples --no-log-file --non-interactive
Processing [1/16]: attributes_with_empty_value.html.erb
Processing [2/16]: begin.html.erb
Processing [3/16]: block.html.erb
Processing [4/16]: case_when.html.erb
Processing [5/16]: comment.html.erb
Processing [6/16]: doctype.html.erb
Processing [7/16]: erb.html.erb
Processing [8/16]: for.html.erb
Processing [9/16]: if_else.html.erb
Processing [10/16]: line-wrap.html.erb
Processing [11/16]: nested_if_and_blocks.html.erb
Processing [12/16]: simple_block.html.erb
Processing [13/16]: simple_erb.html.erb
Processing [14/16]: test.html.erb
Processing [15/16]: until.html.erb
Processing [16/16]: while.html.erb
Completed processing all files.
--- SUMMARY --------------------------------------------------------------------
Total files: 16
✅ Successful: 16 (100.0%)
❌ Failed: 0 (0.0%)
1 parent 0031bb6 commit 285cbe3
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments