use co-promt and generators to wait for cli input