completely 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/completely/templates/sample.yaml +1 -1
- data/lib/completely/templates/template.erb +3 -3
- data/lib/completely/version.rb +1 -1
- data/lib/completely.rb +0 -5
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1725a40745985999197a9e3aa59c2b4d2ff7a5669657e1f4425a5537ae3c888
|
|
4
|
+
data.tar.gz: 67547ef69659b1751cf17f1c71ede5ad7176e7d3816367ed0bdacccb474b75df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aa99c40ee76e3488702a8c6b59f8ba3789ec12995dbf9655f0600d7d81787d2cd2bc820c465247966cc695e84be3aa43cb6ccf08854b85d4422f2f0fe8b4bba
|
|
7
|
+
data.tar.gz: eb44a7eee738f7810491913b4a9873a528804991669a506d63fa54dc610bef025daf2603fd9c3db6c5c21b3d119580e12e224d54e75880f87cd4b4aa71ec08df
|
data/README.md
CHANGED
|
@@ -77,7 +77,7 @@ mygit status:
|
|
|
77
77
|
- --help
|
|
78
78
|
- --verbose
|
|
79
79
|
- --branch
|
|
80
|
-
- $(git branch 2
|
|
80
|
+
- $(git branch 2>/dev/null)
|
|
81
81
|
|
|
82
82
|
mygit init:
|
|
83
83
|
- --bare
|
|
@@ -169,7 +169,7 @@ branches to your suggestions, use the following:
|
|
|
169
169
|
|
|
170
170
|
```yaml
|
|
171
171
|
mygit:
|
|
172
|
-
- $(git branch 2
|
|
172
|
+
- $(git branch 2>/dev/null)
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
The `2> /dev/null` is used so that if the command is executed in a directory
|
|
@@ -186,10 +186,10 @@ mygit checkout:
|
|
|
186
186
|
- -b
|
|
187
187
|
|
|
188
188
|
mygit checkout*--branch:
|
|
189
|
-
- $(git branch 2
|
|
189
|
+
- $(git branch 2>/dev/null)
|
|
190
190
|
|
|
191
191
|
mygit checkout*-b:
|
|
192
|
-
- $(git branch 2
|
|
192
|
+
- $(git branch 2>/dev/null)
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
The above will suggest git branches for commands that end with `-b` or `--branch`.
|
|
@@ -202,7 +202,7 @@ mygit checkout:
|
|
|
202
202
|
- -b
|
|
203
203
|
|
|
204
204
|
mygit checkout*--branch: &branches
|
|
205
|
-
- $(git branch 2
|
|
205
|
+
- $(git branch 2>/dev/null)
|
|
206
206
|
|
|
207
207
|
mygit checkout*-b: *branches
|
|
208
208
|
```
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
if [[ "${cur:0:1}" == "-" ]]; then
|
|
13
13
|
echo "$words"
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
else
|
|
16
16
|
for word in $words; do
|
|
17
17
|
[[ "${word:0:1}" != "-" ]] && result+=("$word")
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
% patterns.each do |pattern|
|
|
39
39
|
% next if pattern.empty?
|
|
40
40
|
<%= pattern.case_string %>)
|
|
41
|
-
while read -r; do COMPREPLY+=(
|
|
41
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen <%= pattern.compgen %> -- "$cur")
|
|
42
42
|
;;
|
|
43
43
|
|
|
44
44
|
% end
|
|
45
45
|
esac
|
|
46
46
|
} &&
|
|
47
|
-
complete -F <%= function_name %> <%= command %>
|
|
47
|
+
complete -F <%= function_name %> <%= command %>
|
|
48
48
|
|
|
49
49
|
# ex: filetype=sh
|
data/lib/completely/version.rb
CHANGED
data/lib/completely.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: completely
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colsole
|
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
|
-
rubygems_version: 3.
|
|
97
|
+
rubygems_version: 3.5.14
|
|
98
98
|
signing_key:
|
|
99
99
|
specification_version: 4
|
|
100
100
|
summary: Bash Completions Generator
|