Skip to content

Commit

Permalink
rake: suggest all tasks, rather than only those with descriptions
Browse files Browse the repository at this point in the history
An unintended consequence of this change is that task arguments are no
longer suggested; however, manually introducing them by typing '[' will
still work.

Closes #8.
  • Loading branch information
mernen committed Jun 23, 2017
1 parent e3731f7 commit 8f6834e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completion-rake
Expand Up @@ -157,7 +157,7 @@ __rake_tasks() {
else
[[ -d $rakedir ]] && cd "$rakedir"
local rake_bin=(${rake_bin[@]:-rake})
tasks=$("${rake_bin[@]}" --rakefile "$rakefile" --silent --describe 2>/dev/null |
tasks=$("${rake_bin[@]}" --rakefile "$rakefile" --silent --prereqs 2>/dev/null |
sed -ne '/^rake / {
s/^rake \(.*\)/\1/p
# For commands with parameters, also offer parameterless version
Expand Down

0 comments on commit 8f6834e

Please sign in to comment.