-
Notifications
You must be signed in to change notification settings - Fork 164
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
[ros2 pkg] add option to get package "share directory" directly #89
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Comments
wjwwood
added
enhancement
New feature or request
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Apr 13, 2018
This could be done by using the |
What about Also, can you please point me to the packages I can use for testing? |
Nickolaim
added a commit
to Nickolaim/ros2cli
that referenced
this issue
Jun 3, 2018
``` bash $ ros2 pkg prefix ament_flake8 /home/nick/ros2_ws/install $ ros2 pkg prefix --share ament_flake8 /home/nick/ros2_ws/install Share dir: /home/nick/ros2_ws/install/share/ament_flake8 $ ros2 pkg prefix -h usage: ros2 pkg prefix [-h] [--share] package_name Output the prefix path of a package positional arguments: package_name The package name optional arguments: -h, --help show this help message and exit --share show share directory for the package ```
Merged
Nickolaim
added a commit
to Nickolaim/ros2cli
that referenced
this issue
Jun 5, 2018
``` bash $ ros2 pkg prefix ament_flake8 /home/nick/ros2_ws/install $ ros2 pkg prefix --share ament_flake8 /home/nick/ros2_ws/install Share dir: /home/nick/ros2_ws/install/share/ament_flake8 $ ros2 pkg prefix -h usage: ros2 pkg prefix [-h] [--share] package_name Output the prefix path of a package positional arguments: package_name The package name optional arguments: -h, --help show this help message and exit --share show share directory for the package ```
Nickolaim
added a commit
to Nickolaim/ros2cli
that referenced
this issue
Jun 5, 2018
This reverts commit 8bec852
Nickolaim
added a commit
to Nickolaim/ros2cli
that referenced
this issue
Jun 5, 2018
dirk-thomas
pushed a commit
that referenced
this issue
Jun 6, 2018
* Implementation for #89 ``` bash $ ros2 pkg prefix ament_flake8 /home/nick/ros2_ws/install $ ros2 pkg prefix --share ament_flake8 /home/nick/ros2_ws/install Share dir: /home/nick/ros2_ws/install/share/ament_flake8 $ ros2 pkg prefix -h usage: ros2 pkg prefix [-h] [--share] package_name Output the prefix path of a package positional arguments: package_name The package name optional arguments: -h, --help show this help message and exit --share show share directory for the package ``` * Revert "Implementation for #89" This reverts commit 8bec852 * Implementation for #89, addressing PR feedback
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently you can only get a package's installation prefix with this command using
ros2 pkg prefix <package name>
, but it would be convenient to be able to get at least the "share" directory of the package directly, if not others as well, i.e.<install prefix>/share/<package name>
rather than just<install prefix>
.The command could either be
ros2 pkg share <package name>
or something likeros2 pkg prefix --share <package name>
instead.The text was updated successfully, but these errors were encountered: