mothership 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- ctx.execute(cmd, argv, global_parser.given)
44
+
45
+ ctx.execute(cmd, argv, global.input)
43
46
 
44
47
  code = @@exit_status
45
48
 
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci