-
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
add type completer for 'topic pub' and 'service call' #64
Conversation
code change looks good overall. Though it would be great to hide the
I'd expect this to just complete the matching service name |
I don't think that is technically possible (the results of one completer deciding to ignore the results of other completers). Anyway I wouldn't consider this within the scope of this PR. |
fair enough. Then maybe for another PR we can consider providing the same argument to |
Sure, |
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.
code change looks good to me. I have one request on the docstrings before merging
|
||
|
||
class ServiceTypeCompleter: | ||
"""Callable returning an existing service type or all service types.""" |
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.
Nit: "an existing service type" I would recommend the documentation that it's returning the service type matching the passed service_name or all types (same for topics below)
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.
That sounds good but exceeds the one line rule for the docblock 😉
Connect to #63. Fixes #63.