rake completion with available tasks

This commit is contained in:
Bruno Pinto 2012-08-05 15:51:01 -03:00
parent 47c9c2a7fc
commit 64cd07aec0

View File

@ -1,3 +1,11 @@
# fish completion for rake
function __fish_rake_tasks
rake -P ^/dev/null | grep rake | cut -c 6-
end
### commands
complete -c rake -f -a '(__fish_rake_tasks)'
complete -c rake -s C -l classic-namespace -d 'Put Task and FileTask in the top level namespace'
complete -c rake -s D -l describe -x -d 'Describe the tasks (matching optional PATTERN), then exit.'
complete -c rake -s n -l dry-run -d 'Do a dry run without executing actions.'