-
Notifications
You must be signed in to change notification settings - Fork 243
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
Adds debug-command flag to odo watch #4381
Adds debug-command flag to odo watch #4381
Conversation
It takes the custom debug command from the CLI while trigerring odo watch. Signed-off-by: mik-dass <mrinald7@gmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mik-dass The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@mik-dass can you please add docs about how to use this so that we can update odo.dev website as well? |
I have added a mention of the watch flags in a doc. |
$ odo create nodejs --starter
$ odo push --debug
...
...
$ odo watch --debug-command npm run debug
Error: unknown command "run" for "odo watch"
Usage:
odo watch [flags]
...
... Am I doing something wrong here? The debug command that I have used here Tangential note: it would help to have more documentation about |
You need to mention the id of the devfile command not the command itself.
|
🤦♂️ @mik-dass I am /lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
OK I will try to review the docs for proper debug support. |
* Adds debug-command flag to odo watch It takes the custom debug command from the CLI while trigerring odo watch. Signed-off-by: mik-dass <mrinald7@gmail.com> * Adds a mention of the custom build, run and debug flag for watch in the doc
What type of PR is this?
/kind feature
What does does this PR do / why we need it:
It takes the custom debug command from the CLI while trigerring odo watch.
Which issue(s) this PR fixes:
Fixes #4357
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
odo watch --debug-command <custom debug command>
should work.