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