-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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(scripts): use bash to call openapi #3980
feat(scripts): use bash to call openapi #3980
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3980 +/- ##
============================================
+ Coverage 50.76% 51.11% +0.34%
- Complexity 2468 2482 +14
============================================
Files 475 476 +1
Lines 14600 14681 +81
Branches 1521 1521
============================================
+ Hits 7412 7504 +92
+ Misses 6661 6651 -10
+ Partials 527 526 -1
Continue to review full report at Codecov.
|
shall we also update the open api usage document? |
Of course. I will update it later. |
and also the CHANGES.md.. |
please also update the open api usage document |
Document has already been updated, is there more doc need to be add? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
Provide basic functions to call openapi with bash scripts.
User can use it directly without write by self.
Which issue(s) this PR fixes:
Fixes #3941
Brief changelog
file:
.gitattributes
: add*.sh text eol=lf
, let.sh
file end with *nix style line\n
.scripts/openapi/bash/openapi.sh
: bash functions, user can use them.scripts/openapi/bash/openapi-usage-example.sh
: a example to show how to use those bash functions.run
cd scripts/openapi/bash bash -x openapi-usage-example.sh
to view the result of bash scripts.
In bash scripts, use here document to make json string more readable.
Only cluster's get and create, if it is ok, more functions will be added in the feature.
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.