-
Notifications
You must be signed in to change notification settings - Fork 720
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
pd-ctl: set exit code for invalid command #3337
Conversation
Signed-off-by: Shenjun Ma <mashenjun0902@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #3337 +/- ##
=======================================
Coverage 74.75% 74.76%
=======================================
Files 243 243
Lines 23140 23134 -6
=======================================
- Hits 17299 17296 -3
+ Misses 4269 4266 -3
Partials 1572 1572
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/merge |
@disksing: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/ti-community-prow repository. |
This pull request has been accepted and is ready to merge. Commit hash: 8d1306f
|
@mashenjun: Your PR has out-of-dated, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/ti-community-prow repository. |
Signed-off-by: Shenjun Ma mashenjun0902@gmail.com
What problem does this PR solve?
Issue Number: close #3333
Problem Summary: When under non-interactive mode,
pd-ctl
should exits with a non-zero code for invalid commands.What is changed and how it works?
modify
func startCmd
to return error.modify
func MainStart
to check the returned error and set exit code correspondingly.Check List
Tests
pd-ctl
Release note
pd-ctl
exits with a non-zero code for invalid commands under non-interactive mode.