Autocomplete files for mix run

Previously, `mix run <tab>` would not expand into anything, even though the [`mix run`](https://hexdocs.pm/mix/Mix.Tasks.Run.html) task accepts filenames as inputs. This commit collapses the growing list of such cases (`test`, `format`, `run`) into one clause that autocompletes files.

Although `mix run` accepts several different `--flags`, the autocompletion isn't currently set up to deal with subcommands' specific options, so I'm punting on that part.
This commit is contained in:
Alex Vondrak 2021-03-16 13:44:40 -07:00 committed by GitHub
parent aa98bc593f
commit b152a4901f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -227,11 +227,7 @@ case $state in
_arguments ':feature:__task_list'
return
;;
(test)
_arguments ':PATH:_files'
return
;;
(format)
(test|format|run)
_arguments ':PATH:_files'
return
;;