I'm actually quite ignorant about the subject. Since much of medieval Italy did not operate like the various monarchies and feudal kingdoms throughout Europe, how were the leading military men chosen? Examples from states like Venice, Milan, Genoa, Florence, etc. would be appreciated. I'm especially interested in the republics. For instance: were the matters of who led campaigns put to a vote? Even if they were oligarchic decisions.