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: v1 #7

Merged
merged 6 commits into from
Aug 1, 2023
Merged

feat: v1 #7

merged 6 commits into from
Aug 1, 2023

Conversation

moul
Copy link
Owner

@moul moul commented Jul 31, 2023

Initial version with basic CSV support.

$ cat testdata/file2.csv | go run . csv 
|Name       |Age |Email            |
|----       |--- |-----            |
|John Doe   |30  |john@example.com |
|Jane Smith |25  |jane@example.com |

$ cat testdata/file1.csv | go run . csv
|head1  |head2  |head3  |head4  |
|-----  |-----  |-----  |-----  |
|bodya1 |bodya2 |bodya3 |bodya4 |
|bodyb1 |bodyb2 |bodyb3 |bodyb4 |

$ cat testdata/file1.csv | go run . csv -csv-no-header
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |
|-------- |-------- |-------- |-------- |
|head1    |head2    |head3    |head4    |
|bodya1   |bodya2   |bodya3   |bodya4   |
|bodyb1   |bodyb2   |bodyb3   |bodyb4   |

$ cat testdata/file1.csv | go run . csv -md-header '{{range .Cols}}HEY\t{{end}}'
|HEY    |HEY    |HEY    |HEY    |
|---    |---    |---    |---    |
|bodya1 |bodya2 |bodya3 |bodya4 |
|bodyb1 |bodyb2 |bodyb3 |bodyb4 |

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
@moul moul self-assigned this Jul 31, 2023
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Jul 31, 2023
@moul moul changed the title chore: post-release feat: v1 Jul 31, 2023
@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #7 (9c8ff39) into main (a38ab17) will increase coverage by 9.49%.
The diff coverage is 29.50%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   21.27%   30.76%   +9.49%     
==========================================
  Files           1        1              
  Lines          47       78      +31     
==========================================
+ Hits           10       24      +14     
- Misses         37       53      +16     
- Partials        0        1       +1     
Flag Coverage Δ
unittests 30.76% <29.50%> (+9.49%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
main.go 30.76% <29.50%> (+9.49%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
@moul moul marked this pull request as ready for review August 1, 2023 01:12
@moul moul merged commit fde4d02 into main Aug 1, 2023
17 checks passed
@moul moul deleted the dev/moul/v1 branch August 1, 2023 01:12
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant