refactor command spec output for list