Skip to content

Commit 2fa3eb5

Browse files
committed
Merge pull request #21 from eprogramming/contrib
this closes #20 also better organization.
2 parents 8b28d36 + 8ad5ee4 commit 2fa3eb5

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
scalaesh
22
========
33

4-
Just a scala wrapper to use [aesh](https://github.com/aeshell/aesh).
4+
Scala wrapper to use [aesh](https://github.com/aeshell/aesh).
55

66
Download:
77
--------
88

99
Universal package:
1010

11-
[scalaesh-0.56.tgz](https://github.com/EsmerilProgramming/scalaesh/releases/download/0.56/scalaesh-0.56.tgz)
11+
[scalaesh-0.56.tgz](https://github.com/aeshell/scalaesh/releases/download/0.56/scalaesh-0.56.tgz)
1212

1313
```shell
1414
$ tar xvzf scalaesh-0.56.tgz
@@ -24,7 +24,7 @@ $ ./scalaesh
2424

2525
Rpm package:
2626

27-
[scalaesh-0.56-1.noarch.rpm](https://github.com/EsmerilProgramming/scalaesh/releases/download/0.56/scalaesh-0.56-1.noarch.rpm)
27+
[scalaesh-0.56-1.noarch.rpm](https://github.com/aeshell/scalaesh/releases/download/0.56/scalaesh-0.56-1.noarch.rpm)
2828

2929

3030
```shell
@@ -41,7 +41,7 @@ Your own build
4141
Setup scala and sbt...
4242

4343
```shell
44-
$ git clone https://github.com/EsmerilProgramming/scalaesh.git
44+
$ git clone https://github.com/aeshell/scalaesh.git
4545
```
4646

4747
```shell

build.sbt

+5-7
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,18 @@ libraryDependencies ++= Seq (
1717

1818
packageArchetype.java_application
1919

20-
maintainer := "Helio Frota<[email protected]>"
20+
maintainer := "aesh team"
2121

22-
packageSummary := "Simple Wrapper for aesh"
22+
packageSummary := "Scala wrapper for aesh"
2323

24-
packageDescription := """A simple wrapper for aesh and aesh-extensions"""
24+
packageDescription := """Scala wrapper for aesh and aesh-extensions"""
2525

2626
rpmRelease := "1"
2727

28-
rpmVendor := "EsmerilProgramming"
28+
rpmVendor := "aesh"
2929

30-
rpmGroup := Some("Esmeril/Programming")
30+
rpmGroup := Some("aeshell/aesh")
3131

3232
rpmUrl := Some("http://github.com/aeshell/scalaesh")
3333

3434
rpmLicense := Some("Apache License, Version 2.0")
35-
36-
//rpmBrpJavaRepackJars := true

src/main/scala/org/eprogramming/scalaesh/ScalaeshApp.scala renamed to src/main/scala/org/jboss/aesh/ScalaeshApp.scala

+11-16
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,24 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.esmerilprogramming.scalaesh
18+
package org.jboss.aesh
1919

2020
import org.jboss.aesh.console._
2121
import org.jboss.aesh.console.command.registry._
2222
import org.jboss.aesh.console.settings._
23+
import org.jboss.aesh.extensions.cat._
24+
import org.jboss.aesh.extensions.cd._
25+
import org.jboss.aesh.extensions.clear._
26+
import org.jboss.aesh.extensions.echo._
2327
import org.jboss.aesh.extensions.harlem.aesh.Harlem
2428
import org.jboss.aesh.extensions.less.aesh.Less
29+
import org.jboss.aesh.extensions.ls._
30+
import org.jboss.aesh.extensions.matrix._
31+
import org.jboss.aesh.extensions.mkdir._
2532
import org.jboss.aesh.extensions.more.aesh.More
2633
import org.jboss.aesh.extensions.pwd._
27-
import org.jboss.aesh.extensions.mkdir._
2834
import org.jboss.aesh.extensions.rm._
29-
import org.jboss.aesh.extensions.echo._
30-
import org.jboss.aesh.extensions.matrix._
31-
import org.jboss.aesh.extensions.cat._
3235
import org.jboss.aesh.extensions.touch._
33-
import org.jboss.aesh.extensions.cd._
34-
import org.jboss.aesh.extensions.ls._
35-
import org.jboss.aesh.extensions.clear._
36-
37-
import org.jboss.aesh.terminal.{Color, TerminalColor, TerminalString, TestTerminal}
3836

3937

4038
/**
@@ -48,12 +46,9 @@ object ScalaeshApp extends App {
4846
sb.logging(true);
4947

5048
val acr = new AeshCommandRegistryBuilder();
51-
// files
52-
acr.commands(classOf[Cd], classOf[Ls], classOf[Mkdir], classOf[Pwd], classOf[Rm], classOf[Touch]);
53-
// screen
54-
acr.commands(classOf[Cat], classOf[Clear], classOf[Echo], classOf[Less], classOf[More]);
55-
// crazy
56-
acr.commands(classOf[Harlem], classOf[Matrix]);
49+
acr.commands(classOf[Cd], classOf[Ls], classOf[Mkdir], classOf[Pwd],
50+
classOf[Rm], classOf[Touch],classOf[Cat], classOf[Clear], classOf[Echo],
51+
classOf[Less], classOf[More],classOf[Harlem], classOf[Matrix]);
5752

5853
val acb = new AeshConsoleBuilder()
5954
acb.commandRegistry(acr.create);

0 commit comments

Comments
 (0)