cl 1.2.0 → 1.2.1

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: e0e03ee27c161efccb0e06355598ab58c0ab9ef1
4
- data.tar.gz: f4a43fff809f58600ac878a49f25167445b2ab52
3
+ metadata.gz: d0868a84071e98e61b6af2bbb7016ce0c790f009
4
+ data.tar.gz: 580cd103fc7cbe10b8cbb027fc3755f2e2f6b7cf
5
5
  SHA512:
6
- metadata.gz: 64eb76490a49555dff4ad9af529d9dda88ada8f04bdf1667a66ed85753027891a4792efa9860c1d1c36d36a568b817c8282e2200f589fd7953019302e66ceb29
7
- data.tar.gz: 5a967a02acef85622b2da4da3abcf012cece0b9c887e837cf50b9a4f64038d8d1565a3ff77f08c72560653d15bf4d62aad347298ab300f2aaf8e6ec20327cabf
6
+ metadata.gz: 4206c429e046981a709764ffe08f1187d22d947887e24bb1f9b9dce5eaab8e06fa189af7e44a78ac1118b8771748b2189926d2afa2c08770af313e4c4ebd13a0
7
+ data.tar.gz: 6cb0a53c526041a7dca3d397095e5413fa4cdcd4729475355345538f0cbc82ca567e4b92eefce8af659ba46619776ab3991d40948d8ec39e6744e439cc92b17d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cl (1.1.5)
4
+ cl (1.2.0)
5
5
  regstry (~> 1.0.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -183,6 +183,8 @@ module Git
183
183
  class Pull < Cl::Cmd
184
184
  register :'git:pull'
185
185
 
186
+ arg :branch
187
+
186
188
  def run
187
189
  p cmd: registry_key, args: args
188
190
  end
@@ -215,6 +217,8 @@ module Git
215
217
  class Pull < Cl::Cmd
216
218
  register :'git:pull'
217
219
 
220
+ arg :branch
221
+
218
222
  def run
219
223
  p cmd: registry_key, args: args
220
224
  end
@@ -1032,7 +1036,7 @@ Cl.new('owners').run(%w(add))
1032
1036
  #
1033
1037
  # Options:
1034
1038
  #
1035
- # --to GROUP type: string, required: true
1039
+ # --to GROUP type: string, required
1036
1040
  # --help Get help on this command
1037
1041
 
1038
1042
  ```
@@ -38,7 +38,7 @@ $: << File.expand_path('lib')
38
38
  <%= run 'Cl.new($0).run(%w(types true 1 1.2 foo bar))' %>
39
39
 
40
40
  <%= out sq(<<-'str')
41
- Too many arguments (given: 5, allowed: 4)
41
+ Too many arguments: true 1 1.2 foo bar (given: 5, allowed: 4)
42
42
 
43
43
  Usage: bin/examples types [a:bool] [b:int] [c:float] [d] [options]
44
44
 
@@ -38,7 +38,7 @@ $: << File.expand_path('lib')
38
38
  <%= run 'Cl.new($0).run(%w(types true 1 1.2 foo bar))' %>
39
39
 
40
40
  <%= out sq(<<-'str')
41
- Too many arguments (given: 5, allowed: 4)
41
+ Too many arguments: true 1 1.2 foo bar (given: 5, allowed: 4)
42
42
 
43
43
  Usage: bin/examples types [a:bool] [b:int] [c:float] [d] [options]
44
44
 
@@ -32,7 +32,7 @@ $: << File.expand_path('lib')
32
32
 
33
33
  Arguments:
34
34
 
35
- one type: string, required: true
35
+ one type: string, required
36
36
  two type: string
37
37
 
38
38
  Options:
@@ -44,13 +44,13 @@ $: << File.expand_path('lib')
44
44
  <%= run 'Cl.new($0).run(%w(required one two three))' %>
45
45
 
46
46
  <%= out sq(<<-'str')
47
- Too many arguments (given: 3, allowed: 2)
47
+ Too many arguments: one two three (given: 3, allowed: 2)
48
48
 
49
49
  Usage: bin/examples required one [two] [options]
50
50
 
51
51
  Arguments:
52
52
 
53
- one type: string, required: true
53
+ one type: string, required
54
54
  two type: string
55
55
 
56
56
  Options:
@@ -27,7 +27,7 @@ $: << File.expand_path('lib')
27
27
 
28
28
  Options:
29
29
 
30
- --to GROUP type: string, required: true
30
+ --to GROUP type: string, required
31
31
  --help Get help on this command
32
32
  str
33
33
  %>
@@ -6,6 +6,8 @@ $: << File.expand_path('lib')
6
6
  class Pull < Cl::Cmd
7
7
  register :'git:pull'
8
8
 
9
+ arg :branch
10
+
9
11
  def run
10
12
  p cmd: registry_key, args: args
11
13
  end
@@ -40,7 +40,7 @@ Cl.new($0).run(%w(types true 1 1.2 foo bar))
40
40
 
41
41
  # Output:
42
42
  #
43
- # Too many arguments (given: 5, allowed: 4)
43
+ # Too many arguments: true 1 1.2 foo bar (given: 5, allowed: 4)
44
44
  #
45
45
  # Usage: bin/examples types [a:bool] [b:int] [c:float] [d] [options]
46
46
  #
@@ -40,7 +40,7 @@ Cl.new($0).run(%w(types true 1 1.2 foo bar))
40
40
 
41
41
  # Output:
42
42
  #
43
- # Too many arguments (given: 5, allowed: 4)
43
+ # Too many arguments: true 1 1.2 foo bar (given: 5, allowed: 4)
44
44
  #
45
45
  # Usage: bin/examples types [a:bool] [b:int] [c:float] [d] [options]
46
46
  #
@@ -34,7 +34,7 @@ Cl.new($0).run(%w(required))
34
34
  #
35
35
  # Arguments:
36
36
  #
37
- # one type: string, required: true
37
+ # one type: string, required
38
38
  # two type: string
39
39
  #
40
40
  # Options:
@@ -45,13 +45,13 @@ Cl.new($0).run(%w(required one two three))
45
45
 
46
46
  # Output:
47
47
  #
48
- # Too many arguments (given: 3, allowed: 2)
48
+ # Too many arguments: one two three (given: 3, allowed: 2)
49
49
  #
50
50
  # Usage: bin/examples required one [two] [options]
51
51
  #
52
52
  # Arguments:
53
53
  #
54
- # one type: string, required: true
54
+ # one type: string, required
55
55
  # two type: string
56
56
  #
57
57
  # Options:
@@ -27,5 +27,5 @@ Cl.new('owners').run(%w(add))
27
27
  #
28
28
  # Options:
29
29
  #
30
- # --to GROUP type: string, required: true
30
+ # --to GROUP type: string, required
31
31
  # --help Get help on this command
@@ -5,6 +5,8 @@ module Git
5
5
  class Pull < Cl::Cmd
6
6
  register :'git:pull'
7
7
 
8
+ arg :branch
9
+
8
10
  def run
9
11
  p cmd: registry_key, args: args
10
12
  end
@@ -8,7 +8,7 @@ class Cl
8
8
  mod = Module.new
9
9
  mod.send(:attr_accessor, name)
10
10
  mod.class_eval "def #{name}?; #{name}.is_a?(Array) ? !#{name}.empty? : !!#{name} end"
11
- const.include(mod)
11
+ const.send(:include, mod)
12
12
  end
13
13
 
14
14
  def set(cmd, value)
@@ -1,3 +1,3 @@
1
1
  class Cl
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs