Add autocomplete and a couple of aliases for the Play Framework v2.x

This commit is contained in:
Joe Zulli 2013-05-12 21:58:05 -07:00
parent 27c6becffd
commit 8dbd049da4
2 changed files with 45 additions and 0 deletions

32
plugins/play/_play Normal file
View File

@ -0,0 +1,32 @@
#compdef play
#autoload
local -a _play_commands
_play_commands=(
'classpath:Display the project classpath'
'clean:Clean all generated files'
'clean-all:Force clean all generated directories including the SBT cache'
'compile:Compile the current application'
'~compile:Compile the current application continuously with automatic reloading'
'console:Launch the interactive Scala console (use :quit to exit)'
'dependencies:Display the dependencies summary'
'dist:Construct standalone application package'
'package:Package your application as a JAR'
'publish:Publish your application in a remote repository'
'publish-local:Publish your application in the local repository'
'reload:Reload the current application build file'
'run:Run the current application in DEV mode'
'~run:Run the current application in DEV mode with automatic reloading'
'test:Run Junit tests and/or Specs from the command line'
'~test:Run Junit tests and/or Specs continuously with automatic reloading'
'eclipse:Generate eclipse project file'
'idea:Generate Intellij IDEA project file'
'start:Start the current application in another JVM in PROD mode'
'update:Update application dependencies'
)
local expl
_describe -t commands "play subcommand" _play_commands
return

View File

@ -0,0 +1,13 @@
# ------------------------------------------------------------------------------
# FILE: play.plugin.zsh
# DESCRIPTION: oh-my-zsh plugin file for PlayFramework 2.x.
# AUTHOR: Joe Zulli (GitHub Alias: GitsMcGee)
# VERSION: 1.0.0
# ------------------------------------------------------------------------------
# Hopefully useful aliases. All Aliases start with 'pl...'
alias pltc="play '~compile'" # Compile in "triggered execution" mode
alias pltr="play '~run'" # Run in "triggered execution" mode
alias pltt="play '~test'" # Test in "triggered execution" mode