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

feat: print result as table #7

Merged
merged 7 commits into from
Nov 24, 2023
Merged

feat: print result as table #7

merged 7 commits into from
Nov 24, 2023

Conversation

siyul-park
Copy link
Owner

@siyul-park siyul-park commented Nov 22, 2023

Changes Made

  • Added a table printer functionality to enhance the readability of command results.

Details

This update introduces a table printer to the uniflow apply command, providing a more organized and user-friendly display of the command results.

To use this feature, execute the following command:

./dist/uniflow apply -f examples/ping.yaml
 ID     KIND     NAME    NAMESPACE  LINKS                                
 <nil>  http     http    default    map[io:[map[name:router port:in]]]   
 <nil>  router   router  default    map[out[0]:[map[name:pong port:io]]] 
 <nil>  snippet  pong    default    <nil>                                

@siyul-park siyul-park added the enhancement New feature or request label Nov 22, 2023
@siyul-park siyul-park self-assigned this Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (9e8b547) 62.14% compared to head (b96770d) 63.81%.

❗ Current head b96770d differs from pull request most recent head c10c7ce. Consider uploading reports for the commit c10c7ce to get more accurate results

Files Patch % Lines
cmd/uniflow/apply/cmd.go 14.28% 9 Missing and 3 partials ⚠️
cmd/printer/table.go 80.00% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   62.14%   63.81%   +1.66%     
==========================================
  Files          76       80       +4     
  Lines        6689     6770      +81     
==========================================
+ Hits         4157     4320     +163     
+ Misses       1926     1863      -63     
+ Partials      606      587      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@siyul-park siyul-park merged commit 43bf009 into main Nov 24, 2023
3 checks passed
@siyul-park siyul-park deleted the feature/table_printer branch November 24, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant