- Notifications
You must be signed in to change notification settings - Fork1k
Description
Currently, Coder CLI completions can be installed usingcoder completion
. Right now this supports all commands and flags, but not any arguments or flag values.
However, we can also supply a customCompletionHandler
to thecoder ssh
command that will populate the autocomplete suggestions with a list of all agents owned by the currently logged in user.
coder ssh
supports lots of formats so these completions will need to decide on just one, such as<agent>.<workspace>
.
However,<workspace>
aliases should also be added to the list for single-agent workspaces, since most workspaces are single-agent.
e.g.
$ coder ssh<TAB>golang-devreactbackend.testingdb.testing
Related to#14986, where tab completion support forssh coder.<TAB>
was removed with the introduction of the wildcard ssh config.