Format commands output