dry-cli-completion 1.0.0.pre.beta1 → 1.0.0.pre.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +11 -5
- data/dry-cli-completion.gemspec +1 -1
- data/lib/dry/cli/completion/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84584d0b8311a6a0608e830090cedb404ab30c92901a21cefff324a9f6ba5119
|
4
|
+
data.tar.gz: ed55444a593eb3811a25f6cc2a0dacc94d1accc06384928846f6d2973aa469e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1188fe5ea0da8bbc42bec08198126558cd2657c422d1a16ac5cf4c08f974a43148bc6f56e13906687d35ae94664ae4994bede0c3609b7dc048f03f4c5c614e2e
|
7
|
+
data.tar.gz: 5e7d91437507f85aff8b94d38e98c93bb5e5a2d28055427e1598504e330591d0c8a15c6b1c885f5ceef6faaf09444645662eddf971992c8cfbdd3d37dd89b6c3
|
data/CHANGELOG.md
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.pre.
|
4
|
+
version: 1.0.0.pre.beta2
|
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-10-16 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:
|