Skip to content

Commit 4998e74

Browse files
committed
more commands and readme update.
1 parent 14bc77f commit 4998e74

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ scalaesh
33

44
Just a scala wrapper to use aesh.
55

6-
git clone and type:
6+
clone and type:
77

8+
```shell
9+
$ sbt
10+
```
811

9-
![Alt 01](https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh1.png)
12+
```shell
13+
$ stage
14+
```
1015

11-
![Alt 02](https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh2.png)
16+
```shell
17+
$ cd target/universal/stage/bin
18+
```
1219

13-
![Alt 03](https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh3.png)
14-
15-
![Alt 04](https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh4.png)
20+
```shell
21+
$ ./scalaesh
22+
```

scalaesh1.png

-18.3 KB
Binary file not shown.

scalaesh2.png

-26.7 KB
Binary file not shown.

scalaesh3.png

-20.6 KB
Binary file not shown.

scalaesh4.png

-118 KB
Binary file not shown.

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import org.jboss.aesh.console._
1010
import org.jboss.aesh.console.command.registry._
1111
import org.jboss.aesh.console.settings._
1212
import org.jboss.aesh.extensions.harlem.aesh.Harlem
13+
import org.jboss.aesh.extensions.less.aesh.Less
14+
import org.jboss.aesh.extensions.more.aesh.More
1315
import org.jboss.aesh.extensions.pwd._
1416
import org.jboss.aesh.extensions.mkdir._
1517
import org.jboss.aesh.extensions.rm._
@@ -45,12 +47,14 @@ object ScalaeshApp extends App {
4547
acr.command(new Matrix());
4648
acr.command(new Mkdir());
4749
acr.command(new Echo());
50+
acr.command(new More());
51+
acr.command(new Less());
4852
acr.command(new Rm());
4953

5054
val acb = new AeshConsoleBuilder()
5155
acb.commandRegistry(acr.create());
5256
acb.settings(sb.create());
53-
acb.prompt(new Prompt("[scalaesh@localhost]$ "));
57+
acb.prompt(new Prompt("[scalaesh@~]$ "));
5458
acb.create().start();
5559

5660
}

0 commit comments

Comments
 (0)