-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Closed
Labels
Description
Rationale
Why should this feature exist?
Geth has a huge number of commands and options to be passed. Some commands need arguments and sometimes it's complicated to say which order you need to provide.
A Bash completion script would give hints of what can be expected when pressing TAB.
What are the use-cases?
Every Geth developer or beginner that often uses Geth's CLI.
Implementation
Do you have ideas regarding the implementation of this feature?
Two approaches can be taken:
- A new geth command is created, eg.
geth completion, that dumps a completion script. When installing Geth, the uses addssource <(geth completion)to their~/.bashrcor runsgeth completion > /etc/bash_completion.d/geth. - A completion script is written and included in this repository. Then the Geth documentation will guide the user to download the script and place it under
~/.bash_completion.d/gethor/etc/bash_completion.d/geth. In this option, no Go source code will be changed.
Are you willing to implement this feature?
Yes.