nyxnor / onionjuggler

Manage your Onion Services via CLI or TUI on Unix-like operating system with a POSIX compliant shell.
MIT License
34 stars 2 forks source link

[FEATURE REQUEST] - shell completion #10

Open nyxnor opened 2 years ago

nyxnor commented 2 years ago

Is your feature request related to a problem? Please describe.

Those are the most used shells and known to me that have completion (more to come if someone helps), I want that to be improved.

Describe the solution you'd like

Additional context

Low priority, it will be very useful but not intrinsic required.

nyxnor commented 2 years ago

Planning to move this to a new repository onionjuggler-shell-completion This will avoid having bash and zsh code with posix, because of shellcheck and codefactor lintering.

nyxnor commented 2 years ago
nyxnor commented 2 years ago

https://github.com/scop/bash-completion/blob/master/bash_completion

nyxnor commented 2 years ago

9a00d26

nyxnor commented 2 years ago

8d36854

nyxnor commented 2 years ago

ca13e72

nyxnor commented 2 years ago

in the end it was only bash completion, because sh does not have one and I won't learn zsh completion.

Also, only possible to complete services by configuration, because it is readable.

Not possible to complete clients server and client side because it is owned by the tor user.

Also, if the completion was made, it would only be valid to the root user, and I don't want anyone running root user by default just for completion.

nyxnor commented 2 years ago

What can be improved is service listing with comma the same way wget does https://github.com/scop/bash-completion/blob/40aa4dc3c75791f43f850871466039768b3048ad/completions/wget#L47