Skip to content

Commit

Permalink
completions/rake: List all tasks (#478)
Browse files Browse the repository at this point in the history
My rake (13.0.6) generates empty list for completition without the flag `--all`
  • Loading branch information
mhmxs authored Sep 23, 2023
1 parent 72b8e67 commit 8e5e43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/rake.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function _rakecomplete {
if [ -f Rakefile ]; then
recent=`ls -t .rake_tasks~ Rakefile **/*.rake 2> /dev/null | head -n 1`
if [[ $recent != '.rake_tasks~' ]]; then
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
rake --silent --tasks --all | cut -d " " -f 2 > .rake_tasks~
fi
COMPREPLY=($(compgen -W "`cat .rake_tasks~`" -- ${COMP_WORDS[COMP_CWORD]}))
return 0
Expand Down

0 comments on commit 8e5e43e

Please sign in to comment.