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