]> git.rmz.io Git - dotfiles.git/blob - zsh/plugins/laravel/_artisan
add xbindkeysrc
[dotfiles.git] / zsh / plugins / laravel / _artisan
1 #compdef artisan
2
3 # Laravel autocompletion
4 # Author: John Hamelink <john@johnhamelink.com>
5 #
6 # This plugin does the following:
7 # - Adds aliases and autocompletion for artisan
8 # - Adds aliases and autocompletion for bob
9
10 local curcontext="$curcontext" state line _opts _bundles ret=1
11 _arguments -C \
12 '1: :->cmds' \
13 '*:: :->args' && ret=0
14
15 case $state in
16 cmds)
17
18 _values "Artisan command" \
19 'session\:install[Create a session table]' \
20 'migrate[Manage Migrations]' \
21 'test[Run a test]' \
22 'route\:\:call[Call a route in the CLI]' \
23 'key\:\:generate[Generate a key]'
24 ret=0
25 ;;
26 args)
27 case $line[1] in
28 migrate)
29 _values \
30 'install[Create the Laravel migration table' \
31 'make[Create a migration]' \
32 'rollback[Roll back to the last migration operation]' \
33 'reset[Roll back all migrations that have ever run]'
34 ret=0
35 ;;
36 esac
37 ;;
38 esac
39
40 return ret