generate_shell_completion 0.0.17 → 0.0.18
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d3e8fd21a56e37862c1081da1c647412982ce3d3cd0756195d9083f7f4511c8
|
|
4
|
+
data.tar.gz: 8ac801059d63540fbbbb1b3f31c95cc49c68272fce16d2ff6c095217870685cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f236cf9bdf6e64543a0bfb28e593a404f373d3a4d9c04d05b28ff3ce136f0422a5551adb7db07403c93cc4ab14c095c235a0677ec5b18cd9bf0de7bc9c692b98
|
|
7
|
+
data.tar.gz: 3697fa69942456983f3f546a2fae7a229e8cc279b48c4ff47f86ee905ea118e1e41bf7af5be13767734e60b7c35addecdb13efe8c432c289690ab4175416c12c
|
|
@@ -40,7 +40,10 @@ class GenerateShellCompletion # === GenerateShellCompletion::GenerateShellComple
|
|
|
40
40
|
# ========================================================================= #
|
|
41
41
|
# === initialize
|
|
42
42
|
#
|
|
43
|
-
#
|
|
43
|
+
# Usage example:
|
|
44
|
+
#
|
|
45
|
+
# _ = GenerateShellCompletion.new(, :dont_run_yet)
|
|
46
|
+
#
|
|
44
47
|
# ========================================================================= #
|
|
45
48
|
def initialize(
|
|
46
49
|
i = STORE_HERE,
|
|
@@ -51,6 +54,13 @@ class GenerateShellCompletion # === GenerateShellCompletion::GenerateShellComple
|
|
|
51
54
|
if run_already.to_s.include? 'dont'
|
|
52
55
|
run_already = false
|
|
53
56
|
end
|
|
57
|
+
case run_already
|
|
58
|
+
# ======================================================================= #
|
|
59
|
+
# === :default_value
|
|
60
|
+
# ======================================================================= #
|
|
61
|
+
when :default_value
|
|
62
|
+
run_already = true
|
|
63
|
+
end
|
|
54
64
|
run if run_already
|
|
55
65
|
end
|
|
56
66
|
|
|
@@ -268,8 +278,11 @@ end
|
|
|
268
278
|
# =========================================================================== #
|
|
269
279
|
# === GenerateShellCompletion.new
|
|
270
280
|
# =========================================================================== #
|
|
271
|
-
def self.new(
|
|
272
|
-
|
|
281
|
+
def self.new(
|
|
282
|
+
i = ARGV,
|
|
283
|
+
run_already = :default_value
|
|
284
|
+
)
|
|
285
|
+
return GenerateShellCompletion::GenerateShellCompletion.new(i, run_already)
|
|
273
286
|
end
|
|
274
287
|
|
|
275
288
|
end
|
|
@@ -9,7 +9,7 @@ class GenerateShellCompletion
|
|
|
9
9
|
# ========================================================================= #
|
|
10
10
|
# === VERSION
|
|
11
11
|
# ========================================================================= #
|
|
12
|
-
VERSION = '0.0.
|
|
12
|
+
VERSION = '0.0.18'
|
|
13
13
|
|
|
14
14
|
# ========================================================================= #
|
|
15
15
|
# === LAST_UPDATE
|