mothership 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mothership.rb +6 -3
- data/lib/mothership/version.rb +1 -1
- metadata +3 -3
data/lib/mothership.rb
CHANGED
@@ -27,8 +27,8 @@ class Mothership
|
|
27
27
|
global_parser = Parser.new(@@global)
|
28
28
|
name, *argv = global_parser.parse_flags(argv, @@commands)
|
29
29
|
|
30
|
-
global = new
|
31
|
-
global.input = Inputs.new(@@global, global, global_parser)
|
30
|
+
global = new(@@global)
|
31
|
+
global.input = Inputs.new(@@global, global, {}, global_parser.given)
|
32
32
|
|
33
33
|
return global.default_action unless name
|
34
34
|
|
@@ -38,8 +38,11 @@ class Mothership
|
|
38
38
|
return global.unknown_command(cmdname) unless cmd
|
39
39
|
|
40
40
|
ctx = cmd.context.new
|
41
|
+
|
42
|
+
# make global input available for those wrapping execute
|
41
43
|
ctx.input = global.input
|
42
|
-
|
44
|
+
|
45
|
+
ctx.execute(cmd, argv, global.input)
|
43
46
|
|
44
47
|
code = @@exit_status
|
45
48
|
|
data/lib/mothership/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mothership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|