fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmReplace some uses of `tr`a7af4a030

master
1.4 KiB27 linesraw
1# Completion for grunt
2
3# grunt-cli
4# http://gruntjs.com/
5#
6# Copyright (c) 2012 Tyler Kellen, contributors
7# Licensed under the MIT license.
8# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
9
10function __grunt_print_tasks
11    grunt --version --verbose 2>/dev/null | awk '/Available tasks: / {$1=$2=""; print $0}' | awk '{$1=$1}1' | string split ' '
12end
13
14complete -c grunt -fa '(__grunt_print_tasks)'
15complete -c grunt -s h -l help -d "Display help text"
16complete -c grunt -l base -d "Specify an alternate base path"
17complete -c grunt -l no-color -d "Disable colored output"
18complete -c grunt -l gruntfile -rd "Specify an alternate Gruntfile"
19complete -c grunt -s d -l debug -d "Enable debugging mode for tasks that support it"
20complete -c grunt -l stack -d "Print a stack trace when exiting with a warning or fatal error"
21complete -c grunt -s f -l force -d "A way to force your way past warnings."
22complete -c grunt -l tasks -rd "Additional directory paths to scan for task and "extra" files"
23complete -c grunt -l npm -x -d "Npm-installed grunt plugins to scan for task and "extra" files"
24complete -c grunt -l no-write -d "Disable writing files (dry run)"
25complete -c grunt -s v -l verbose -d "Verbose mode. A lot more information output"
26complete -c grunt -s V -l version -d "Print the grunt version. Combine with --verbose for more info"
27complete -c grunt -l completion -d "Output shell auto-completion rules."