-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Feature Request: bash completion generation via a command #4551
Labels
Comments
The trickiest part will be completing paths. It would be awesome if we could do that reliably but that will take some modifications to the cmds library. However, simply completing commands and flags is totally doable. |
Stebalien
added
kind/feature
A new feature
help wanted
Seeking public contribution on this issue
labels
Apr 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version information:
$ ipfs version --all
go-ipfs version: 0.4.13-
Repo version: 6
System version: amd64/linux
Golang version: go1.9.2
Type:
Enhancement
Severity:
N/A
Description:
Currently, ipfs provides bash completion through: https://github.com/ipfs/go-ipfs/blob/master/docs/command-completion.md
IMHO, it is much easier if you could just generate the bash completion script with, say:
ipfs completion bash > /etc/bash_completion.d/ipfs
. This feature is implemented by k8s, for example:Which means that this is generated programmatically and, probably, using introspection. In any case, this would be easier to maintain, IMHO.
Not clear enough (up there, you have Feature as an option). Sorry if I made a feature request where it wasn't allowed.
The text was updated successfully, but these errors were encountered: