The militia of the state not in the service of the United States shall be governed and its affairs administered pursuant to law, by the governor, as commander-in-chief, through the adjutant general's department, of which the adjutant general shall be the executive head.