CLI colorization, code optimization