File tree 6 files changed +18
-7
lines changed
src/main/scala/org/eprogramming/scalaesh
6 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,20 @@ scalaesh
3
3
4
4
Just a scala wrapper to use aesh.
5
5
6
- git clone and type:
6
+ clone and type:
7
7
8
+ ``` shell
9
+ $ sbt
10
+ ```
8
11
9
- ![ Alt 01] ( https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh1.png )
12
+ ``` shell
13
+ $ stage
14
+ ```
10
15
11
- ![ Alt 02] ( https://raw.githubusercontent.com/EsmerilProgramming/scalaesh/master/scalaesh2.png )
16
+ ``` shell
17
+ $ cd target/universal/stage/bin
18
+ ```
12
19
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
+ ```
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import org.jboss.aesh.console._
10
10
import org .jboss .aesh .console .command .registry ._
11
11
import org .jboss .aesh .console .settings ._
12
12
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
13
15
import org .jboss .aesh .extensions .pwd ._
14
16
import org .jboss .aesh .extensions .mkdir ._
15
17
import org .jboss .aesh .extensions .rm ._
@@ -45,12 +47,14 @@ object ScalaeshApp extends App {
45
47
acr.command(new Matrix ());
46
48
acr.command(new Mkdir ());
47
49
acr.command(new Echo ());
50
+ acr.command(new More ());
51
+ acr.command(new Less ());
48
52
acr.command(new Rm ());
49
53
50
54
val acb = new AeshConsoleBuilder ()
51
55
acb.commandRegistry(acr.create());
52
56
acb.settings(sb.create());
53
- acb.prompt(new Prompt (" [scalaesh@localhost ]$ " ));
57
+ acb.prompt(new Prompt (" [scalaesh@~ ]$ " ));
54
58
acb.create().start();
55
59
56
60
}
You can’t perform that action at this time.
0 commit comments