dry-cli-completion 1.0.0.pre.beta1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/README.md +11 -5
- data/dry-cli-completion.gemspec +1 -1
- data/lib/dry/cli/completion/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 297056ad70ccf3139438f7567aa4d8e5cf294ca903bc20ca87e9e75a567989fb
|
4
|
+
data.tar.gz: 73e9bd35673d5c86b6f3d8b71214b1c450a0d00fa307fb9108f44b73e7ebcc86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ea87e19b8d3e5b819774aa7376810160a33c2bfc2189c61fa61e565be93bc617c7a5c5a9dfeb0621ce356eed804a02c32575b01fb259cfed62ae0695244cc1
|
7
|
+
data.tar.gz: 7e265f5137f468bc676429e8ded96100955ddb6eef852bfb90bd6dfa741add368d1451311c311b1c26c2825f73f4fda8b823a98138f9a843966b0604e6f8bc58
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -38,14 +38,20 @@ Simplest usage is to drop in the `Dry::CLI::Completion::Command` to your existin
|
|
38
38
|
module MyRegistry
|
39
39
|
extend Dry::CLI::Registry
|
40
40
|
|
41
|
-
|
42
|
-
|
41
|
+
register "cmd1", MyCmd1
|
42
|
+
#....
|
43
43
|
|
44
|
-
|
45
|
-
end
|
44
|
+
register "completion", Dry::CLI::Completion::Command[self]
|
46
45
|
end
|
47
46
|
```
|
48
47
|
|
48
|
+
or extend the registry subsequently:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
#....
|
52
|
+
MyRegistry.register("completion", Dry::CLI::Completion::Command[MyRegistry])
|
53
|
+
```
|
54
|
+
|
49
55
|
This will extend your cli for a new command `completion` with following usage:
|
50
56
|
|
51
57
|
```sh
|
@@ -105,7 +111,7 @@ The gem comes with a full-fledged rspec testsuite. To execute all tests run in d
|
|
105
111
|
$ rspec
|
106
112
|
|
107
113
|
### Manual Testing
|
108
|
-
The
|
114
|
+
The `Foo::CLI::Command` registry used in unit test is available as `spec/foo-cli` for manual testing. First source the completion script:
|
109
115
|
|
110
116
|
$ source <(spec/foo-cli completion bash)
|
111
117
|
|
data/dry-cli-completion.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-cli-completion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rngtng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: completely
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.5'
|
27
27
|
description: Extension Command for Dry::CLI which generates a completion script for
|
28
28
|
bash/zsh.
|
29
29
|
email:
|
@@ -62,9 +62,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: 2.7.6
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubygems_version: 3.3.7
|
70
70
|
signing_key:
|