-
Notifications
You must be signed in to change notification settings - Fork 148
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
verbs: adding locate verb to get workspace paths #165
Conversation
thanks, this is perfect! |
I'd suggest a trip-wire test for this verb, just to catch things like that. Otherwise, lgtm. |
@@ -0,0 +1,24 @@ | |||
# Copyright 2014 Open Source Robotics Foundation, Inc. |
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.
nitpick: New files should get a 2015 copyright year.
# This describes this command to the loader | ||
description = dict( | ||
verb='find', | ||
description="Get the paths to important locations in a workspace.", |
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.
Does this need to be update to include finding packages? I think it might work for both cases, though it is a little vague.
By this I assume you mean it is addressed by using How does this compare or relate to |
Yeah, specifically This will work from within a workspace in the same way
This is currently very different from Another interface I was considering would have a form like:
|
Hmm, the I don't necessarily have a problem with the verb being called
Others? For reference
|
Also the pull request description examples are identical (I think it might have been a copy paste update error). |
Yeah, other names are fine. I originally switched it from
One is bash the other is zsh. Not really necessary to have both there of course. |
What about this:
It combines |
These would also be good flags to put in the
|
Some other things to think about:
|
Yeah that could also work, though I think a
It returns an error code and prints a message to stderr.
Currently it will give you the path to where they will be created. I think it should also return nothing and print an error to stderr.
It currently is and yes I think it should be.
Yes. It gets the space paths from the context. |
@wjwwood What do you think of this interface:
|
ca84b2e
to
2faf8cf
Compare
@wjwwood This is the next one in the queue, I believe. |
Sorry, I've been letting this roll around in the back of my mind. I'm still not sold on using I really think these options should be either attached to a different verb name, like Thoughts? |
Oh, and other than the verb name, the above looks great to me. |
+1 for |
I merged with rename. |
@k-okada
With this PR, calling this shell function from within a directory will source its devel space:
cd
to a package in the workspace, regardless ofbuild_type
(see #143)