dry-cli-completion 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +9 -0
- data/CHANGELOG.md +3 -0
- data/Dockerfile +19 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/Makefile +20 -0
- data/README.md +42 -0
- data/Rakefile +12 -0
- data/lib/dry/cli/completion/version.rb +9 -0
- data/lib/dry/cli/completion.rb +12 -0
- data/sig/dry/cli/completion.rbs +8 -0
- metadata +73 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb611ff121ae25f5f4b8cbe926d7742a28885e2408cabb2e589fce724d67b85c
|
4
|
+
data.tar.gz: '008ba658f43ec5177037e31f0bf4e78aafbfcbb866065e1cbd702117815495f3'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9362523877d4147af5ffdbbb53a54158ffee4b2a5709c6e3aa854197da105f391861fd6daacd80bedf0d1b7b4fbb1cd520e9a5abb56cdc4dd83b384ba0d8504a
|
7
|
+
data.tar.gz: b5603912acb40ff3a2d4e0cdf2c8734a86cef9572139b9087e31d33e84d833bd081c47f7429716aa18a8a6ed0804780004234090eb82a68f4b28cbbad39ab976
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
FROM ruby:2.7-slim
|
2
|
+
|
3
|
+
RUN set -ex \
|
4
|
+
&& apt update \
|
5
|
+
&& apt install -y --no-install-recommends build-essential git
|
6
|
+
|
7
|
+
RUN mkdir /app
|
8
|
+
|
9
|
+
# COPY Gemfile Gemfile.lock /app/
|
10
|
+
|
11
|
+
WORKDIR /app
|
12
|
+
# RUN bundle install
|
13
|
+
# RUN bundle binstubs --all --path /bin
|
14
|
+
|
15
|
+
COPY . /app
|
16
|
+
|
17
|
+
ENV HISTCONTROL=ignoreboth:erasedups
|
18
|
+
|
19
|
+
ENTRYPOINT ["bash"]
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 Tobias Bielohlawek
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Makefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
PROJECT ?= rngtng/dry-cli-completion
|
2
|
+
BUILD_TAG ?= dev
|
3
|
+
REGISTRY_TAG = $(PROJECT):$(BUILD_TAG)
|
4
|
+
|
5
|
+
.PHONY: help # List all documented targets
|
6
|
+
help:
|
7
|
+
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 $(shell echo "\t") \2/' | sort | expand -t20
|
8
|
+
|
9
|
+
.PHONY: build # Build docker image with `dev` tag
|
10
|
+
build:
|
11
|
+
docker build -t $(REGISTRY_TAG) .
|
12
|
+
|
13
|
+
.PHONY: test-gh-action # Test github actions locally with https://github.com/nektos/act
|
14
|
+
test-gh-action:
|
15
|
+
echo '{ "inputs": { "tag": "0.1.0" } }' > /tmp/act.json
|
16
|
+
act --artifact-server-path /tmp/artifacts workflow_dispatch -e /tmp/act.json
|
17
|
+
|
18
|
+
.PHONY: dev # Build docker image, run and ssh inside
|
19
|
+
dev:
|
20
|
+
docker run --rm -it -v "$(shell pwd):/app" $(REGISTRY_TAG)
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# Dry::Cli::Completion
|
2
|
+
|
3
|
+
Dry::CLI Command to generate a completion script for bash/zsh
|
4
|
+
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/dry-cli-completion.svg)](https://badge.fury.io/rb/dry-cli-completion)
|
6
|
+
|
7
|
+
## About
|
8
|
+
|
9
|
+
Extension Command for Dry::CLI which generates a completion script for bash/zsh.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'dry-cli-completion'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle install
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install dry-cli-completion
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
TODO: Write usage instructions here
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
|
34
|
+
For local development, this project comes with a Dockerimage and Makefile. After checking out the repo, run the following to enter development console:
|
35
|
+
|
36
|
+
```
|
37
|
+
make build dev
|
38
|
+
```
|
39
|
+
|
40
|
+
Then, run `rake spec` to run the tests.
|
41
|
+
|
42
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
data/Rakefile
ADDED
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dry-cli-completion
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- rngtng
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: completely
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.4'
|
27
|
+
description: Extension Command for Dry::CLI which generates a completion script for
|
28
|
+
bash/zsh.
|
29
|
+
email:
|
30
|
+
- tobi@rngtng.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".rspec"
|
36
|
+
- ".rubocop.yml"
|
37
|
+
- CHANGELOG.md
|
38
|
+
- Dockerfile
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE
|
41
|
+
- Makefile
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- lib/dry/cli/completion.rb
|
45
|
+
- lib/dry/cli/completion/version.rb
|
46
|
+
- sig/dry/cli/completion.rbs
|
47
|
+
homepage: https://github.com/rngtng/dry-cli-completion
|
48
|
+
licenses:
|
49
|
+
- MIT
|
50
|
+
metadata:
|
51
|
+
homepage_uri: https://github.com/rngtng/dry-cli-completion
|
52
|
+
source_code_uri: https://github.com/rngtng/dry-cli-completion
|
53
|
+
changelog_uri: https://github.com/rngtng/dry-cli-completion/CHANGELOG.md
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.7.6
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubygems_version: 3.3.7
|
70
|
+
signing_key:
|
71
|
+
specification_version: 4
|
72
|
+
summary: Dry::CLI Command to generate a completion script for bash/zsh
|
73
|
+
test_files: []
|