What type of government did Libya have?

Libya used to be a one-man dictatorship under Col. Gaddafi. But now, Libya is moving towards a constitutional multi-party Islamist democratic state.