-
Notifications
You must be signed in to change notification settings - Fork 34
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
Client will install bash completion file. #213
Conversation
11d000c
to
9981c98
Compare
@lubomir @xychu
So do we need to support bash as well as zsh or just support bash and drop zsh? |
I would say let's do one then the other if the requirement is required from customer, but we need to |
It would be nice to support more shells, but I don't want zsh blocking bash. These changes look fine to me. However, the main thing must change in the packaging: assuming user has I don't see the advantage of global support. It still requires us to install a completion file, and has the potential of interacting with other python programs, which I think is not desirable. |
@lubomir global support doesn't require completion file, we just have to add |
@lubomir I see pip has the function we want: if we press |
@lao605 Does that work completely automatically or did you have to run |
@lubomir yes, users will have to run |
It is a problem that users have to run a command. How are they going to know they should do it? Apart from knowing that running the command is necessary, is is also required to have root access (to put the file under |
@lubomir As for user-friendliness, the implementation you mention is better: user will just have to install |
JIRA: PDC-1161
I think of a third solution where we can put
I have taken three factors in account: user-friendlinessby saying user-friendliness, I mean the steps users needed to do to make auto-completion work for pdc.
Although they all require 2 steps to make it work, plan 1 and plan 3 outweight plan 2 because in the plan 2 editing of ~/.bashrc file is needed. plan 1 and plan 3 wins. extensibility
So, as for extensibility, plan 3 wins. support for shells
so, as for support for shells, plan 2 wins. But shells support is not of primary concern. plan 3 is the same with plan 1 in user-friendliness and beat plan 1 and plan 2 in extensibility. I think it is a workable plan. |
9981c98
to
c013040
Compare
Good news is that pdc-client repo is ready, |
Add bash completion file to package and document python-argcomplete.
JIRA: PDC-1161