Article XI. The governor shall be Commander-in-Chief of the Army, of the Navy, and of the Militia of the Commonwealth; he shall have power to call the Militia or any portion thereof into actual service, whenever the public exigency shall require; and he shall have the appointment of all military and naval officers, except the captains and subalterns of militia companies, who may be elected by thei