-
Notifications
You must be signed in to change notification settings - Fork 155
Add option to set output_format via environment variable #713
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
Open
SammyRamone
wants to merge
5
commits into
ros2:rolling
Choose a base branch
from
SammyRamone:feature_output_format_env
base: rolling
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+13
−2
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d116d7b
add option to set output_format via environment variable
SammyRamone 46a3f81
change format envvar to override
SammyRamone 13eaf6e
change priority of setting output format
SammyRamone 713a842
remove double string literal
SammyRamone f93d958
Update launch/launch/actions/execute_local.py
SammyRamone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
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.
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.
The docstring says default is
ROS_LAUNCH_OUTPUT_FORMAT
, but here says[{this.process_description.final_name}] {line}
? these comments are confusing for me.As user perspective if they use
ROS_LAUNCH_OUTPUT_FORMAT
, that should be able to override the setting in the implementation. i think that what environmental variables does usually, so that they do not change the implementation at all.so i would suggest that,
ROS_LAUNCH_OUTPUT_FORMAT
[{this.process_description.final_name}] {line}
what do you think?
CC: @wjwwood
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.
The docstring means that the default can be choosen by
ROS_LAUNCH_OUTPUT_FORMAT
. If it is not set it will fallback to[{this.process_description.final_name}] {line}
. I see that it is confusingly written. I can adapt this, however we should first decide on the other question of the priority ordering.The order or priorities was especially requested this way by @clalancette in this comment
I personally don't care if the environment variable or the function argument has a higher priority. I can understand both sides.
@wjwwood also proposed here to have an additional env var which overrides everything. I did not add it as I thought it might be a bit too much complexity. But if you would prefere it, I could change it. Then the priorities would be
ROS_LAUNCH_OUTPUT_FORMAT_OVERRIDE
ROS_LAUNCH_OUTPUT_FORMAT_DEFAULT
[{this.process_description.final_name}] {line}
Would you prefer this solution?