arethusa-cli 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bff9923a0b9b37d48debe4faba03eaaf4cd7ae5
4
- data.tar.gz: f14876b90a8da4488c861b17b6b29afda303a292
3
+ metadata.gz: 40f54d9e4af8ba8e84379fc0b26cda9dbea1bc3e
4
+ data.tar.gz: 43f5f3c8d0a9e3d184db0309063ef8e705639522
5
5
  SHA512:
6
- metadata.gz: 67e3d4d601873cfdf82baa6e941564c7d5e96720f4c2c2a340a02c3b3ce739eedc9d38afa91684502302ad2fbc99723dfec7a158f0c9eba976e8a607cd34f84b
7
- data.tar.gz: 8ac8ba526fd5a7684b569de2692ff75efd5b7f00ac88940538959482a33eeec333aa3d1417925e0d06a76793f27d5d416af1aa54093c8c9c6bf7cb22b51027ea
6
+ metadata.gz: 50b7b045aaf006b777f537ad7d16c18ece1b72bbf84243235f832b90c4da7f8ecc026714c42261ab90c8cca4258df852a49f8205ba0143414a1bfc978b7b2cd2
7
+ data.tar.gz: 6fed28da14039ae084c409a9a3338d3bcd7485eeec6a0b3ebc6e1f307527afca200acb07a50564615ced8706c4fe3de2260b2e2238336efced78a21f75669a57
@@ -1,5 +1,5 @@
1
1
  module Arethusa
2
2
  class CLI
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
data/lib/arethusa/cli.rb CHANGED
@@ -63,12 +63,18 @@ EOF
63
63
  desc 'merge FILE', 'Merge Arethusa configuration files'
64
64
  method_option :base_path, aliases: '-b',
65
65
  desc: 'Base path to conf files to be included'
66
+ method_option :minify, aliases: '-m',
67
+ desc: 'Print the resulting JSON minified'
66
68
  def merge(file)
67
69
  @conf = read_conf(file)
68
70
  @conf_dir = options[:base_path] || app_dir
69
71
  traverse_and_include(@conf)
70
72
 
71
- puts JSON.pretty_generate(@conf, indent: ' ')
73
+ if options[:minify]
74
+ puts @conf.to_json
75
+ else
76
+ puts JSON.pretty_generate(@conf, indent: ' ')
77
+ end
72
78
  end
73
79
 
74
80
  no_commands do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arethusa-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - LFDM