couchbaselabs / couchbase-shell

Shell yeah!
http://couchbase.sh
Apache License 2.0
68 stars 14 forks source link

Use `list_clusters` method in `clusters_get` #512

Open Westwooo opened 2 days ago

Westwooo commented 2 days ago

In cloud.rs as part of the clusters_get function we list all the clusters, then find the one with the matching name. The logic here re-implements what is in the clusters_list function in the same file.

In clusters get we should call clusters_list then look through the resulting list.