Skip to content

CLI implementation (generate command line tool) #2545

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

Merged
merged 2 commits into from
Mar 21, 2021
Merged

CLI implementation (generate command line tool) #2545

merged 2 commits into from
Mar 21, 2021

Conversation

youyuanwu
Copy link
Member

Signed-off-by: Youyuan Wu youyuanwu@outlook.com

Generated a CLI tool to make request to server. Based on https://github.com/spf13/cobra See examples/cli/README.md for details of how this is implemented.
Intend to solve issue/enhancement: #139

There are many features missing, but the overall layout is in shape. This can be merged so that I can work on it incrementally. Any suggestion on how to test this is welcomed.

Signed-off-by: Youyuan Wu <youyuanwu@outlook.com>
Signed-off-by: Youyuan Wu <youyuanwu@outlook.com>
@codecov
Copy link

codecov bot commented Mar 21, 2021

Codecov Report

Merging #2545 (2d41f55) into master (3e6080c) will decrease coverage by 0.27%.
The diff coverage is 38.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2545      +/-   ##
==========================================
- Coverage   81.82%   81.54%   -0.28%     
==========================================
  Files          53       54       +1     
  Lines        8394     8437      +43     
==========================================
+ Hits         6868     6880      +12     
- Misses       1031     1059      +28     
- Partials      495      498       +3     
Impacted Files Coverage Δ
cmd/swagger/commands/generate/cli.go 0.00% <0.00%> (ø)
generator/shared.go 83.42% <29.72%> (-4.10%) ⬇️
generator/support.go 85.11% <100.00%> (+0.19%) ⬆️
generator/template_repo.go 89.10% <100.00%> (+0.10%) ⬆️

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 3e6080c...2d41f55. Read the comment docs.

@casualjim casualjim merged commit 7315910 into go-swagger:master Mar 21, 2021
@youyuanwu youyuanwu deleted the CLI-implementation branch March 29, 2021 01:48
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.

2 participants