cmdr 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cmdr.rb +14 -13
- metadata +1 -1
data/lib/cmdr.rb
CHANGED
@@ -9,25 +9,26 @@ include REXML
|
|
9
9
|
|
10
10
|
class Cmdr
|
11
11
|
|
12
|
-
def initialize(
|
13
|
-
|
14
|
-
|
12
|
+
def initialize(opt={}, app_mgr=nil)
|
13
|
+
|
14
|
+
o = {
|
15
|
+
public:
|
16
|
+
{
|
15
17
|
alias: {},
|
16
18
|
user:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
19
|
+
{'-1' =>
|
20
|
+
{
|
21
|
+
history:
|
22
|
+
{list: [], index: []}
|
22
23
|
}
|
23
|
-
|
24
|
+
}
|
25
|
+
},
|
24
26
|
config: {bottom_up_display: true}
|
25
|
-
}
|
26
|
-
|
27
|
-
opt.merge!(
|
27
|
+
}
|
28
|
+
|
29
|
+
opt.merge!(o)
|
28
30
|
|
29
31
|
@v = opt[:public]
|
30
|
-
@bottom_up_display = opt[:config][:bottom_up_display]
|
31
32
|
@@app = app_mgr
|
32
33
|
|
33
34
|
super()
|