fuelcell 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWMyNzZhNWVlZThhNWNhZjI4ZGY2ODNiZTMwMWIwNGJmYzZkYmI3Zg==
4
+ OWVhMjk5MTZmYmRkMmU5YjRmZWUwZjk0ZmMwZTdmMWI5ZmRkYjQxOA==
5
5
  data.tar.gz: !binary |-
6
- NzZmMjRmYmJhMWM0NmJmNmRmYjA1MGEyYTA3YzRhMzY0NmUyZGRlNg==
6
+ MTMwMWQ5ZmEzMTU2ZmJjYjM4YTVhNGNjZjk2ZGE0MDU5NjkwNDVmZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2JkMjBkMGMyOWU3YWE0MTU3NzI2Njk4YjJjNzQ1MGVjODk3ZTc4Y2YwZDI4
10
- ZDc2ZjNkNDU5ZDcwZTgyOTQ4NDc0NTc2ZjFiN2M0YjFlNzM5ZDM1YjBhNGEz
11
- YWMwYzBhOTA4ZTA5MDM5MzRmZDY3OTEzZjY4ZmU2YjdlMmQ3OGM=
9
+ MWE5MjgxMzZiNDdlNWU0NjY1NmU1OTRjZDkyNzg2OThhMjVjZWFlOTgxMzI3
10
+ NGMwMmY5ZTNiM2IyNjRmMzM5ZTUxNmI3MGU4MzE0Y2EwYTBjZmEwODg3OTUz
11
+ Y2RkNTQ3MzYwODA0ODBjYjgwOGZhMGYwOGZlNGNlYzgxMGQ0NmM=
12
12
  data.tar.gz: !binary |-
13
- ODU1MmU2MDg1NTU1ZDMwNGE3NjdkMGMxYWMxY2Q3ZDhhZmNmZjg3NzVhNDNk
14
- NGUzMDI1NzAzOTNhNWU2YmQ4NDYwZDc1NGU1M2RkZjFmZDFlMmJjOTdhZTQ3
15
- YWIzNDQ2ZTQ1MTdhMmVkNWRlZTBjZTFjYjlhNzBmZjIwMTEzODk=
13
+ NTY5NDU2ZWRlZjc0NjFkNWM1Mzg2YTIyYzA5ZWI2YmQwNzA2Nzc5NjdkOGE4
14
+ YTg4MDNiODU2NzM0YzBhYTVmYjIwMGQxMWU1Y2JiNzM2MDYyZGJiNWNiYzhj
15
+ Nzk3ZDUxMzcyZTkxMTljZGMwZDlhNTZmYTg1MGYwYWRkNjFmYjg=
data/bin/test CHANGED
@@ -7,14 +7,17 @@ require "fuelcell"
7
7
  Fuelcell.start(ARGV.dup, backtrace: true) do
8
8
  require_relative 'example'
9
9
  desc 'this is an example of how a commands work with fuelcell'
10
- opt 'all|a', banner: 'all of something'
10
+ opt 'all|a', banner: 'all of something', cmd_path: 'fiz'
11
11
  arg 'foo', required: true
12
- run->(opts, args, shell) {
12
+
13
+ run ->(opts, args, shell) {
13
14
  shell.puts "testing #{args.foo}"
14
15
  }
15
16
  command 'fiz' do
16
17
  opt 'blah'
17
18
  desc 'the fiz command'
18
-
19
+ run -> (opts, args, shell) {
20
+ shell.puts "blah"
21
+ }
19
22
  end
20
23
  end
data/lib/fuelcell/cli.rb CHANGED
@@ -72,7 +72,10 @@ module Fuelcell
72
72
  opt_manager = cmd.opts
73
73
  opt = opt_manager.callable
74
74
  return cmd unless opt
75
- return root.locate(opt.cmd_ath) if opt.cmd_path?
75
+ if opt.cmd_path?
76
+ path = opt.cmd_path.split(' ')
77
+ return root.locate(path)
78
+ end
76
79
  opt
77
80
  end
78
81
 
@@ -1,3 +1,3 @@
1
1
  module Fuelcell
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-24 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler