cmdr 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cmdr.rb +2 -3
- metadata +2 -2
data/lib/cmdr.rb
CHANGED
@@ -22,7 +22,6 @@ class Cmdr
|
|
22
22
|
})
|
23
23
|
|
24
24
|
@v = opt[:public]
|
25
|
-
@aliasx = @v[:alias]
|
26
25
|
@bottom_up_display = opt[:config] and opt[:config][:bottom_up_display] ? opt[:config][:bottom_up_display] : true
|
27
26
|
@@app = app_mgr
|
28
27
|
|
@@ -37,8 +36,8 @@ class Cmdr
|
|
37
36
|
command, options_string = raw_command[/\w+/], ($').strip
|
38
37
|
|
39
38
|
|
40
|
-
if @
|
41
|
-
command, options_string2 = @
|
39
|
+
if @v[:alias].has_key? command then
|
40
|
+
command, options_string2 = @v[:alias][command][/\w+/], ($').strip
|
42
41
|
options_string = options_string2 + ' '+ options_string
|
43
42
|
end
|
44
43
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-08-
|
12
|
+
date: 2010-08-14 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|