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

CLI UX - build a workspace from a different working directory #498

Open
alecGraves opened this issue Mar 31, 2022 · 0 comments
Open

CLI UX - build a workspace from a different working directory #498

alecGraves opened this issue Mar 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@alecGraves
Copy link

Many CLI build / file-manipulation tools contain convenience arguments for running a command that operates on a different directory than your current working directory:

~ $ make -C my/makefile/project
~ $ ninja -C my/ninja/builddir
~ $ meson compile -C my/meson_project/builddir
~ $ meson test -C my/meson_project/builddir
~ $ catkin_make -C my/ros1/catkin_ws
~ $ git -C my/git/project
~ $ catkin build --workspace my/ros1/catkin_ws

Currently, with colcon build, you can accomplish this using something like the following:

~ $ p=my/colcon/ws eval 'colcon --log-base $p/log build --base-paths $p --build-base $p/build --install-base $p/install'

...but this is rather cumbersome. A -C or --directory arg for colcon build that defaults log, build, install, and package paths would be more familiar to many developers.

@cottsay cottsay added the enhancement New feature or request label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants