Smart formatting on CLI output