You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executable has built-in support for tab completion. The trick is to end a command line with an underscore. This will cause it to spit out a list of known possible completions. For example the yaml command from the yaml_command project does this:
So all you have to do is create a shell completion script that taps into that capability. No worries. We've already got some working examples below.
Using Bash
Here is an example of creating a tab completion script in bash for the a yaml command that uses Executable. This same basic template can work for any Executable-based command. Just substitute the name for yaml.