xlo 0.0.1.3 → 0.0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/xlo +12 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d00cebfb60d2fc43a0352b5459ece2ad2552ad8c
4
- data.tar.gz: fc26cafa24e6c45efe222d45155e732f01e05ece
3
+ metadata.gz: 2ab72b4077c0c674dc2e80450b9c24b8dd585cd5
4
+ data.tar.gz: c697f7156e9f257074a4c8af84e516d5d494cf12
5
5
  SHA512:
6
- metadata.gz: 397058a1543886648f7db64835536e8a0698789c6236f5d04ac427b2c254958cc393ace3cee45be7c18827023378576884321c16ffc6dadab61a85b5a84d8cea
7
- data.tar.gz: 9fb918377f7cb4680e56b30fa442a844da10ee9aabe160b50fffbcd268cee88d6e1121f2f2b377aedf130e16c617f1cf99e00d006027ac2a7961686aecd9d2e2
6
+ metadata.gz: 17c0868908e0e74365037b17c1b6d21d69283b30580613cb2e1edd8b5971138da11302c63425e602772420fd7c12b421979e3c48f0d9c6d2a722bbb3ff14d163
7
+ data.tar.gz: 8f79f2d5807034109c308608b11b72bec92b0288aa10ed4da9acc499acaafbea78c361aef6ec9539a2ede3963f91c17637879404a628451dad1eb3be9abe1859
data/bin/xlo CHANGED
@@ -1,6 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'xlo'
3
- rnv_arg = ARGV.shift
4
- folder_arg = ARGV.shift
5
- raise "missing argument(s) !" unless rnv_arg
6
- Xlo.main(rnv_arg,folder_arg)
3
+ require 'thor'
4
+
5
+ class MyCLI < Thor
6
+ desc "start","start xlo"
7
+ method_option :schema, :aliases => "-s", :desc => "Specify the path of the rnc schema"
8
+ method_option :input, :aliases => "-i", :desc => "Specify the path of the folder who contains xml files"
9
+ def start
10
+ Xlo.main(options[:schema],options[:input])
11
+ end
12
+ end
13
+
14
+ cli = MyCLI.start(ARGV)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.3
4
+ version: 0.0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Meoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-07-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An aggregator of xml log for rnv and xmllint error
14
14
  email: simonmeoni@aol.com