mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge e13885961c into 96e4e5dd03
This commit is contained in:
commit
e42b6bf482
1 changed files with 56 additions and 13 deletions
|
|
@ -1,27 +1,39 @@
|
||||||
#compdef mix
|
#compdef mix
|
||||||
#autoload
|
#autoload
|
||||||
|
|
||||||
# Elixir mix zsh completion
|
# Elixir mix zsh completion
|
||||||
|
|
||||||
local -a _1st_arguments
|
local -a _1st_arguments
|
||||||
_1st_arguments=(
|
_1st_arguments=(
|
||||||
'archive:Archive this project into a .ez file'
|
'archive:List all archives'
|
||||||
'clean:Clean generated application files'
|
'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:Compile source files'
|
||||||
|
'compile.protocols:Consolidates all protocols in all paths'
|
||||||
'deps:List dependencies and their status'
|
'deps:List dependencies and their status'
|
||||||
"deps.clean:Remove dependencies' files"
|
"deps.clean:Remove the given dependencies' files"
|
||||||
'deps.compile:Compile dependencies'
|
'deps.compile:Compile dependencies'
|
||||||
'deps.get:Get all out of date dependencies'
|
'deps.get:Get all out of date dependencies'
|
||||||
'deps.unlock:Unlock the given dependencies'
|
'deps.unlock:Unlock the given dependencies'
|
||||||
'deps.update:Update dependencies'
|
'deps.update:Update the given dependencies'
|
||||||
'do:Executes the commands separated by comma'
|
'do:Executes the tasks separated by comma'
|
||||||
'escriptize:Generates an escript for the project'
|
'escript.build:Builds an escript for the project'
|
||||||
'help:Print help information for tasks'
|
'help:Print help information for tasks'
|
||||||
|
'hex.config:Read or update hex config'
|
||||||
|
'hex.info:Print hex information'
|
||||||
|
'hex.key:Hex API key tasks'
|
||||||
|
'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:List local tasks'
|
||||||
'local.install:Install a task or an archive locally'
|
'local.hex:Install hex locally'
|
||||||
'local.rebar:Install rebar locally'
|
'local.rebar:Install rebar locally'
|
||||||
'local.uninstall:Uninstall local tasks or archives'
|
'new:Create a new Elixir project'
|
||||||
'new:Creates a new Elixir project'
|
|
||||||
'run:Run the given file or expression'
|
'run:Run the given file or expression'
|
||||||
"test:Run a project's tests"
|
"test:Run a project's tests"
|
||||||
'--help:Describe available tasks'
|
'--help:Describe available tasks'
|
||||||
|
|
@ -33,7 +45,39 @@ __task_list ()
|
||||||
local expl
|
local expl
|
||||||
declare -a tasks
|
declare -a tasks
|
||||||
|
|
||||||
tasks=(archive clean compile deps deps.clean deps.compile deps.get deps.unlock deps.update do escriptize help local local.install local.rebar local.uninstall new run test)
|
tasks=(
|
||||||
|
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.config
|
||||||
|
hex.info
|
||||||
|
hex.key
|
||||||
|
hex.owner
|
||||||
|
hex.publish
|
||||||
|
hex.search
|
||||||
|
hex.user
|
||||||
|
loadconfig
|
||||||
|
local
|
||||||
|
local.hex
|
||||||
|
local.rebar
|
||||||
|
new
|
||||||
|
run
|
||||||
|
test
|
||||||
|
)
|
||||||
|
|
||||||
_wanted tasks expl 'help' compadd $tasks
|
_wanted tasks expl 'help' compadd $tasks
|
||||||
}
|
}
|
||||||
|
|
@ -56,8 +100,7 @@ case $state in
|
||||||
(options)
|
(options)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
(help)
|
(help)
|
||||||
_arguments ':feature:__task_list'
|
_arguments ':feature:__task_list'
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue