to be a complet sentence, you usually need something after. But used like this it's a way to say that the other person suggest something really hard like it was easy. "il n'y a qu'à [...]" usually said " y a qu'à" when speaking, meaning exactly the same as "il suffit de...