Restructurd command handling