From e7ccc5594743032a487d8f2d785458732bcf4cbe Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Mon, 2 Oct 2023 14:12:31 +0900 Subject: [PATCH] Fix missing completion --- src/_rails | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/_rails b/src/_rails index dcfd30e..153e4df 100644 --- a/src/_rails +++ b/src/_rails @@ -126,10 +126,12 @@ _rails() { '(-c --color --no-color)--no-color[Disable color in the output]' \ '--profile=[Enable profiling of tests and list the slowest test cases]:count' \ '(-p --pride)'{-p,--pride}'[Show your testing pride]' \ + '*:: :_files -g "*.rb"' \ && ret=0 ;; (runner|r) _arguments \ + '(- *)'{-h,--help}'[Show this help message and quit]' \ '(-e --environment)'{-e,--environment=}'[The environment to run "runner"]:env:(test development production)' \ '*:: :_files -g "*.rb"' \ && ret=0 @@ -142,6 +144,7 @@ _rails() { ;; (routes) _arguments \ + '(- *)'{-h,--help}'[Show this help message and quit]' \ '(-c --controller)'{-c,--controller=}'[Filter by a specific controller]:controller' \ '(-g --grep)'{-g,--grep}'[Grep routes by a specific pattern]' \ '(-E --expanded)'{-E,--expanded}'[Print routes expanded vertically with parts explained]' \ @@ -151,6 +154,7 @@ _rails() { (*) _arguments \ '(- *)'{-h,--help}'[Show help message and quit]' \ + '*:: :_files' \ && ret=0 ;; esac