Yes. We have a word for that sort of thing. It is called "Junta". It has a bad connotation for good reason. Ceding sovereignty to the military rather than the people is a form of government. What it is not, however, is representative government.The Morsy government was very polarizing. Like the Turkish Military the Egyptian military seems to see itself as an autonomous force whose goal is to keep the government in check.
For decades. And we were willing to tolerate the abuses of such a system. The result is radicalized out-groups.Like I said...pretty similar role for the military and it worked for Turkey for a long time.