.config
.local
.ncmpcpp
.oh-my-zsh
lib
plugins
adb
ant
apache2-macports
arcanist
archlinux
asdf
autoenv
autojump
autopep8
aws
battery
bbedit
bgnotify
boot2docker
bower
branch
brew
bundler
bwana
cabal
cake
cakephp3
capistrano
cargo
cask
catimg
celery
chruby
chucknorris
cloudapp
codeclimate
coffee
colemak
colored-man-pages
colorize
command-not-found
common-aliases
compleat
composer
copybuffer
copydir
copyfile
cp
cpanm
debian
dircycle
dirhistory
dirpersist
django
dnf
docker
docker-compose
dotenv
droplr
emacs
ember-cli
emoji
emoji-clock
emotty
encode64
extract
fabric
fancy-ctrl-z
fasd
fastfile
fbterm
fedora
firewalld
forklift
fossil
frontend-search
gas
gb
geeknote
gem
git
git-extras
git-flow
git-flow-avh
git-hubflow
git-prompt
git-remote-branch
gitfast
github
gitignore
glassfish
globalias
gnu-utils
go
golang
gpg-agent
gradle
grails
grunt
gulp
heroku
history
history-substring-search
httpie
iwhois
jake-node
jhbuild
jira
jruby
jsontools
jump
kate
kitchen
knife
knife_ssh
kubectl
laravel
laravel4
laravel5
last-working-dir
lein
lighthouse
lol
macports
man
marked2
mercurial
meteor
mix
_mix
mix-fast
mosh
mvn
mysql-macports
n98-magerun
nanoc
ng
nmap
node
nomad
npm
nvm
nyan
osx
pass
paver
pep8
per-directory-history
perl
perms
phing
pip
pj
pod
postgres
pow
powder
powify
profiles
pyenv
pylint
python
rails
rake
rake-fast
rand-quote
rbenv
rbfu
react-native
rebar
redis-cli
repo
rsync
ruby
rust
rvm
safe-paste
sbt
scala
scd
screen
scw
sfffe
shrink-path
singlechar
spring
sprunge
ssh-agent
stack
sublime
sudo
supervisor
suse
svn
svn-fast-info
swiftpm
symfony
symfony2
systemadmin
systemd
taskwarrior
terminalapp
terminitor
terraform
textastic
textmate
thefuck
themes
thor
tig
tmux
tmux-cssh
tmuxinator
torrent
tugboat
ubuntu
urltools
vagrant
vault
vi-mode
vim-interaction
virtualenv
virtualenvwrapper
vundle
wakeonlan
wd
web-search
wp-cli
xcode
yarn
yii
yii2
yum
z
zeus
zsh-navigation-tools
zsh_reload
templates
themes
tools
CONTRIBUTING.md
LICENSE.txt
README.md
oh-my-zsh.sh
.themes
.vim
System
.Xdefaults
.Xresources
.bash_profile
.bashrc
.bin
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
95 lines
3.2 KiB
Plaintext
95 lines
3.2 KiB
Plaintext
#compdef mix
|
|
#autoload
|
|
|
|
# Elixir mix zsh completion
|
|
|
|
local -a _1st_arguments
|
|
_1st_arguments=(
|
|
'app.start:Start all registered apps'
|
|
'archive:List all archives'
|
|
'archive.build:Archive this project into a .ez file'
|
|
'archive.install:Install an archive locally'
|
|
'archive.uninstall:Uninstall archives'
|
|
'clean:Delete generated application files'
|
|
'cmd:Executes the given command'
|
|
'compile:Compile source files'
|
|
'compile.protocols:Consolidates all protocols in all paths'
|
|
'deps:List dependencies and their status'
|
|
"deps.clean:Remove the given dependencies' files"
|
|
'deps.compile:Compile dependencies'
|
|
'deps.get:Get all out of date dependencies'
|
|
'deps.unlock:Unlock the given dependencies'
|
|
'deps.update:Update the given dependencies'
|
|
'do:Executes the tasks separated by comma'
|
|
'escript.build:Builds an escript for the project'
|
|
'help:Print help information for tasks'
|
|
'hex:Print hex help information'
|
|
'hex.config:Read or update hex config'
|
|
'hex.docs:Publish docs for package'
|
|
'hex.info:Print hex information'
|
|
'hex.key:Hex API key tasks'
|
|
'hex.outdated:Shows outdated hex deps for the current project'
|
|
'hex.owner:Hex package ownership tasks'
|
|
'hex.publish:Publish a new package version'
|
|
'hex.search:Search for package names'
|
|
'hex.user:Hex user tasks'
|
|
'loadconfig:Loads and persists the given configuration'
|
|
'local:List local tasks'
|
|
'local.hex:Install hex locally'
|
|
'local.rebar:Install rebar locally'
|
|
'new:Create a new Elixir project'
|
|
'phoenix.digest:Digests and compress static files'
|
|
'phoenix.gen.channel:Generates a Phoenix channel'
|
|
'phoenix.gen.html:Generates controller, model and views for an HTML based resource'
|
|
'phoenix.gen.json:Generates a controller and model for a JSON based resource'
|
|
'phoenix.gen.model:Generates an Ecto model'
|
|
'phoenix.gen.secret:Generates a secret'
|
|
'phoenix.new:Create a new Phoenix application'
|
|
'phoenix.routes:Prints all routes'
|
|
'phoenix.server:Starts applications and their servers'
|
|
'run:Run the given file or expression'
|
|
"test:Run a project's tests"
|
|
'--help:Describe available tasks'
|
|
'--version:Prints the Elixir version information'
|
|
)
|
|
|
|
__task_list ()
|
|
{
|
|
local expl
|
|
declare -a tasks
|
|
|
|
tasks=(app.start archive archive.build archive.install archive.uninstall clean cmd compile compile.protocols deps deps.clean deps.compile deps.get deps.unlock deps.update do escript.build help hex hex.config hex.docs hex.info hex.key hex.outdated hex.owner hex.publish hex.search hex.user loadconfig local local.hex local.rebar new phoenix.digest phoenix.gen.channel phoenix.gen.html phoenix.gen.json phoenix.gen.model phoenix.gen.secret phoenix.new phoenix.routes phoenix.server run test)
|
|
|
|
_wanted tasks expl 'help' compadd $tasks
|
|
}
|
|
|
|
local expl
|
|
|
|
local curcontext="$curcontext" state line
|
|
typeset -A opt_args
|
|
|
|
_arguments -C \
|
|
':command:->command' \
|
|
'*::options:->options'
|
|
|
|
case $state in
|
|
(command)
|
|
_describe -t commands "mix subcommand" _1st_arguments
|
|
return
|
|
;;
|
|
|
|
(options)
|
|
case $line[1] in
|
|
(help)
|
|
_arguments ':feature:__task_list'
|
|
;;
|
|
(test)
|
|
_files
|
|
;;
|
|
(run)
|
|
_files
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|