Create decorator to register commands rather than enumerating them