converting cli to use new repo discovery api

See PR https://github.com/Katello/katello/pull/2902