Skip to content
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

Add file-content launch substitution #708

Merged
merged 1 commit into from May 31, 2023
Merged

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented May 11, 2023

This substitution implements a portable mechanism to read the contents of a file on disk. This procedure is used in various scenarios throughout ROS 2, and currently relies on exec and command substitutions to read files.

I'm particularly interested in review of the substitution name.

Reference implementation: ros2/demos#627

Closes #707

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

This substitution implements a portable mechanism to read the contents
of a file on disk. This procedure is used in various scenarios
throughout ROS 2, and currently relies on `exec` and `command`
substitutions to read files.

Signed-off-by: Scott K Logan <logans@cottsay.net>
Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution, just one small nit.

@cottsay cottsay merged commit 913eae2 into rolling May 31, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/launch-file-read branch May 31, 2023 21:03
@cottsay
Copy link
Member Author

cottsay commented May 31, 2023

@Mergifyio backport iron

@mergify
Copy link

mergify bot commented May 31, 2023

backport iron

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 31, 2023
This substitution implements a portable mechanism to read the contents
of a file on disk. This procedure is used in various scenarios
throughout ROS 2, and currently relies on `exec` and `command`
substitutions to read files.

Signed-off-by: Scott K Logan <logans@cottsay.net>
(cherry picked from commit 913eae2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Add new substitution to read files
2 participants