a very basic sbt-0.10 plugin for interacting with the shell
This commit is contained in:
commit
ed7f2c82d0
6 files changed
+61
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
target
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
/.idea
|
||||
out
|
||||
lib_managed
|
||||
src_managed
|
||||
project/boot*
|
||||
project/plugins/project
|
||||
ctags
|
||||
idea.iml
|
||||
@@ -0,0 +1,24 @@
|
||||
Copyright (c) 2011, Stephen Wells.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the author may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,5 @@
|
||||
sbtPlugin := true
|
||||
|
||||
name := "xsbt-sh"
|
||||
|
||||
organization := "org.sbtsh"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname $0)
|
||||
java -Xmx256m -jar sbt-launch-*.jar $*
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
package org.sbtsh
|
||||
|
||||
import sbt._
|
||||
import sbt.CommandSupport._
|
||||
|
||||
object SbtShPlugin extends Plugin {
|
||||
|
||||
override lazy val settings = Seq(Keys.commands += shCommand)
|
||||
|
||||
def shCommand = Command.args("sh", "<shell command>") { (state, args) =>
|
||||
val ret = args.mkString(" ") !
|
||||
|
||||
state
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user