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

TAB-Completion #11

Open
raphiz opened this issue Sep 16, 2016 · 5 comments
Open

TAB-Completion #11

raphiz opened this issue Sep 16, 2016 · 5 comments

Comments

@raphiz
Copy link
Contributor

raphiz commented Sep 16, 2016

Das CLI soll TAB-Completion können - da gibts schon Sachen für docopt...

@fabianhauser fabianhauser added this to the v0.2 milestone Sep 16, 2016
@fabianhauser
Copy link
Member

Da wir neu Click einsetzen: http://click.pocoo.org/5/bashcomplete/

@raphiz
Copy link
Contributor Author

raphiz commented Nov 30, 2016

Korrekt - aber die variante eval "$(_FOO_BAR_COMPLETE=source foo-bar)" möchte ich nicht in die user .bashrc schreiben...Darum müssen wir das Resultat davon zwischenspeichern und dann paketieren:

_FOO_BAR_COMPLETE=source foo-bar > foo-bar.sh

@fabianhauser
Copy link
Member

@raphiz jup, das können wir ja in den Build-Prozess integrieren und das Einbinden global regeln (/usr/share/bash-completion/completions etc.)

@raphiz
Copy link
Contributor Author

raphiz commented Dec 1, 2016

Habe das gleich mal ausprobiert...

$ _OPENHSR_CONNECT_COMPLETE=source openhsr-connect > openhsr-connect-complete.sh
$ source openhsr-connect-complete.sh
$ openhsr-connect <Tab> <Tab>
daemon           help             update-password  
edit             sync          

Soweit OK, aber das Zeug ist LAAANGSAM 😢

@raphiz
Copy link
Contributor Author

raphiz commented Dec 1, 2016

@fabianhauser habe mal die Abhängigkeiten testweise auf Click reduziert (und den Rest einfach mal auskommentiert). Tatsächlich ist die Performance wesentlich besser aber immer noch Grenzwertig langsam (ca. 1 Sekunde auf meinem System 😞 - vorher ca. 1.5-2 Sekunden ).

@fabianhauser fabianhauser modified the milestones: v1.0, v0.2 Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants