-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix(shell) correct logging output #354
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dduportal
added
bug
Something isn't working
condition
Modify condition resource
resource-shell
Resource of kind Shell
source
target
Related to updatecli target
labels
Nov 11, 2021
olblak
reviewed
Nov 11, 2021
I'm converting to draft and I'll had another commit: the output for targets is not correct. But the current code is staying |
olblak
reviewed
Nov 11, 2021
- Fixes updatecli#325 by printing newlines (using better block output with separators) - Centralized log method to avoid discrepancy between cases - Only prints error's output as Info when the command fails. Otherwise you need the "debug" flag. Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Ready for review: PR message updated to provide example, how to test and details, rebased and squash from main branch. |
olblak
approved these changes
Nov 11, 2021
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.
It seems good to me
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
condition
Modify condition resource
resource-shell
Resource of kind Shell
source
target
Related to updatecli target
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Centralized log method to avoid discrepancy between differents log output for shell
Improves log for shell:
β
,β
andβ
for the shell reporting (keeping their usage to the core that reports source/conditions/target)--debug
is passedAdded a bunch of "generic examples" for shell to allow end to end testing
Click to view the new "normal" output with the generic shell example
Click to view the new "debug" output with the generic shell example
Fix #325
Test
To test this pull request, you can run the following commands: