summaryrefslogtreecommitdiff
path: root/plugins/mix
diff options
context:
space:
mode:
authorKyle Scully <scullykns@gmail.com>2016-08-10 17:28:56 -0700
committerMarc Cornellà <marc.cornella@live.com>2016-08-11 02:28:56 +0200
commita9428b137f14969bd44a5787c0080297d81ea0b7 (patch)
treeb696b3177e06dbc5307dc52471dffb751c4ffbfe /plugins/mix
parent4505a438e4829e0335484c08b71244378081d7b7 (diff)
downloadzsh-a9428b137f14969bd44a5787c0080297d81ea0b7.tar.gz
zsh-a9428b137f14969bd44a5787c0080297d81ea0b7.tar.bz2
zsh-a9428b137f14969bd44a5787c0080297d81ea0b7.zip
added mix autocompletion support for phoenix (#4967)
Diffstat (limited to 'plugins/mix')
-rw-r--r--plugins/mix/_mix12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/mix/_mix b/plugins/mix/_mix
index 3b3887b1f..57fdf808a 100644
--- a/plugins/mix/_mix
+++ b/plugins/mix/_mix
@@ -38,6 +38,15 @@ _1st_arguments=(
'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'
@@ -49,7 +58,7 @@ __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 run test)
+ 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
}
@@ -80,4 +89,3 @@ case $state in
esac
;;
esac
-