Outside the walls of Rome , the powers of the consuls were far greater in their role as commanders-in-chief of all Roman legions . Outside the walls of Rome , the powers of the consuls were far more extensive in their role as commanders-in-chief of all Roman legions .