Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json output for catalog list services #1211

Merged
merged 2 commits into from
Oct 2, 2019

Conversation

sudhirverma
Copy link
Contributor

Fix: #724

@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

Merging #1211 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1211      +/-   ##
==========================================
+ Coverage   81.86%   81.89%   +0.03%     
==========================================
  Files          32       32              
  Lines        2266     2270       +4     
  Branches      403      402       -1     
==========================================
+ Hits         1855     1859       +4     
  Misses        411      411
Impacted Files Coverage Δ
src/odo.ts 79% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c984206...d41ff6f. Read the comment docs.

@sudhirverma sudhirverma changed the title Add json output for catalog list services[WIP] Add json output for catalog list services Oct 1, 2019
src/odo.ts Outdated
}
const stpObject: Array<any> = items.filter((value) => value.metadata.name === svcName);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need filter and map when you can just search. It means less iterations over array.

@dgolovin dgolovin merged commit e9b71bf into redhat-developer:master Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use odo catalog list services -o json to get list of available service templates and plans
2 participants