fix: refactor inconsistent behavior on CLI::write() and CLI::error()
#8051
| Job | Run time |
|---|---|
| 2m 5s | |
| 2m 5s |
CLI::write() and CLI::error()
#8051
| Job | Run time |
|---|---|
| 2m 5s | |
| 2m 5s |