Skip to content

Commit fb1714a

Browse files
committed
issue #8
1 parent dc92d70 commit fb1714a

File tree

4 files changed

+46
-20
lines changed

4 files changed

+46
-20
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ swp
33
.swp
44
*~
55
.idea
6+
*.log

README.md

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
scalaesh
22
========
33

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

6-
clone and type:
6+
Download:
7+
--------
8+
9+
Universal package:
10+
11+
[scalaesh-1.0.tgz](https://github.com/EsmerilProgramming/scalaesh/releases/download/1.0/scalaesh-1.0.tgz)
712

813
```shell
9-
$ sbt
14+
$ tar xvzf scalaesh-1.0.tgz
1015
```
1116

1217
```shell
13-
$ stage
18+
$ cd scalaesh-1.0/bin/
1419
```
1520

1621
```shell
17-
$ cd target/universal/stage/bin
22+
$ ./scalaaesh
1823
```
1924

25+
Rpm package:
26+
27+
[scalaesh-1.0-1.noarch.rpm](https://github.com/EsmerilProgramming/scalaesh/releases/download/1.0/scalaesh-1.0-1.noarch.rpm)
28+
29+
2030
```shell
21-
$ ./scalaesh
22-
```
31+
$ sudo yum install scalaesh
32+
```
33+
34+
```shell
35+
$ scalaaesh
36+
```

build.sbt

+18
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,21 @@ libraryDependencies ++= Seq (
1616
)
1717

1818
packageArchetype.java_application
19+
20+
maintainer := "Helio Frota<[email protected]>"
21+
22+
packageSummary := "Simple Wrapper for aesh"
23+
24+
packageDescription := """A simple wrapper for aesh and aesh-extensions"""
25+
26+
rpmRelease := "1"
27+
28+
rpmVendor := "EsmerilProgramming"
29+
30+
rpmGroup := Some("Esmeril/Programming")
31+
32+
rpmUrl := Some("http://github.com/EsmerilProgramming")
33+
34+
rpmLicense := Some("Eclipse Public License - v 1.0")
35+
36+
//rpmBrpJavaRepackJars := true

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

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

3939
val acr = new AeshCommandRegistryBuilder();
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]);
40+
// files
41+
acr.commands(classOf[Cd], classOf[Ls], classOf[Mkdir], classOf[Pwd], classOf[Rm], classOf[Touch]);
42+
// screen
43+
acr.commands(classOf[Cat], classOf[Clear], classOf[Echo], classOf[Less], classOf[More]);
44+
// crazy
45+
acr.commands(classOf[Harlem], classOf[Matrix]);
5346

5447
val acb = new AeshConsoleBuilder()
5548
acb.commandRegistry(acr.create);

0 commit comments

Comments
 (0)