Skip to content

Commit dc92d70

Browse files
committed
issue #9
1 parent 4998e74 commit dc92d70

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ name := "scalaesh"
55

66
version := "1.0"
77

8-
scalaVersion := "2.10.3"
8+
scalaVersion := "2.11.0"
99

1010
exportJars := true
1111

1212
libraryDependencies ++= Seq (
13-
"org.scalatest" % "scalatest_2.10" % "1.9.1" % "test",
13+
"org.scalatest" % "scalatest_2.11" % "2.2.1" % "test",
1414
"org.jboss.aesh" % "aesh" % "0.56",
1515
"org.jboss.aesh" % "aesh-extensions" % "0.56"
1616
)

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-RC2")
1+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")

src/main/scala/org/eprogramming/scalaesh/ScalaeshApp.scala

+15-15
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ object ScalaeshApp extends App {
3737
sb.logging(true);
3838

3939
val acr = new AeshCommandRegistryBuilder();
40-
acr.command(new Pwd());
41-
acr.command(new Clear());
42-
acr.command(new Harlem());
43-
acr.command(new Cat());
44-
acr.command(new Touch());
45-
acr.command(new Cd());
46-
acr.command(new Ls());
47-
acr.command(new Matrix());
48-
acr.command(new Mkdir());
49-
acr.command(new Echo());
50-
acr.command(new More());
51-
acr.command(new Less());
52-
acr.command(new Rm());
40+
acr.command(classOf[Pwd]);
41+
acr.command(classOf[Clear]);
42+
acr.command(classOf[Harlem]);
43+
acr.command(classOf[Cat]);
44+
acr.command(classOf[Touch]);
45+
acr.command(classOf[Cd]);
46+
acr.command(classOf[Ls]);
47+
acr.command(classOf[Matrix]);
48+
acr.command(classOf[Mkdir]);
49+
acr.command(classOf[Echo]);
50+
acr.command(classOf[More]);
51+
acr.command(classOf[Less]);
52+
acr.command(classOf[Rm]);
5353

5454
val acb = new AeshConsoleBuilder()
55-
acb.commandRegistry(acr.create());
56-
acb.settings(sb.create());
55+
acb.commandRegistry(acr.create);
56+
acb.settings(sb.create);
5757
acb.prompt(new Prompt("[scalaesh@~]$ "));
5858
acb.create().start();
5959

0 commit comments

Comments
 (0)