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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/examples/_src/args/cast.erb.rb +1 -1
- data/examples/_src/args/opts.erb.rb +1 -1
- data/examples/_src/args/required.erb.rb +3 -3
- data/examples/_src/readme/required.erb.rb +1 -1
- data/examples/_src/readme/runner.erb.rb +2 -0
- data/examples/args/cast +1 -1
- data/examples/args/opts +1 -1
- data/examples/args/required +3 -3
- data/examples/readme/required +1 -1
- data/examples/readme/runner +2 -0
- data/lib/cl/arg.rb +1 -1
- data/lib/cl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0868a84071e98e61b6af2bbb7016ce0c790f009
|
4
|
+
data.tar.gz: 580cd103fc7cbe10b8cbb027fc3755f2e2f6b7cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4206c429e046981a709764ffe08f1187d22d947887e24bb1f9b9dce5eaab8e06fa189af7e44a78ac1118b8771748b2189926d2afa2c08770af313e4c4ebd13a0
|
7
|
+
data.tar.gz: 6cb0a53c526041a7dca3d397095e5413fa4cdcd4729475355345538f0cbc82ca567e4b92eefce8af659ba46619776ab3991d40948d8ec39e6744e439cc92b17d
|
data/Gemfile.lock
CHANGED
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
|
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
|
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
|
53
|
+
one type: string, required
|
54
54
|
two type: string
|
55
55
|
|
56
56
|
Options:
|
data/examples/args/cast
CHANGED
@@ -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
|
#
|
data/examples/args/opts
CHANGED
@@ -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
|
#
|
data/examples/args/required
CHANGED
@@ -34,7 +34,7 @@ Cl.new($0).run(%w(required))
|
|
34
34
|
#
|
35
35
|
# Arguments:
|
36
36
|
#
|
37
|
-
# one type: string, required
|
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
|
54
|
+
# one type: string, required
|
55
55
|
# two type: string
|
56
56
|
#
|
57
57
|
# Options:
|
data/examples/readme/required
CHANGED
data/examples/readme/runner
CHANGED
data/lib/cl/arg.rb
CHANGED
data/lib/cl/version.rb
CHANGED