Add command permission to command docs generator