fix: refactor inconsistent behavior on CLI::write() and CLI::error()
#10991
| Job | Run time |
|---|---|
| 29s | |
| 29s |
CLI::write() and CLI::error()
#10991
| Job | Run time |
|---|---|
| 29s | |
| 29s |