A person convicted of an offense against the state shall be committed to the custody of the commissioner for the term of imprisonment that the court directs.