mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-15 17:16:20 +08:00
rake completion with available tasks
This commit is contained in:
parent
47c9c2a7fc
commit
64cd07aec0
@ -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.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user