foobara-sh-cli-connector 1.1.0 → 1.1.1
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/CHANGELOG.md +4 -0
- data/src/sh_cli_connector/inputs_parser/option.rb +14 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58d3fd83b530ea3ba876112fee18c05fc5d84dad4399ca52403c011f21eea6d5
|
|
4
|
+
data.tar.gz: fea12f7c629467c9e41505909a1228a02af76a194793c11f5ec59dc60390769d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd0afcbcfccf171ee874a17288f9b65899a53afac838c5d702fda8e58bb6063adbf3dae19688836691b814b9ee1c4f4e491df63a9e3546e92ec8692e77f66d28
|
|
7
|
+
data.tar.gz: f0ad7b171126eef0ae5dfa5142ac3c312fbda1c2b859672cc39b4623b7b1567bc2a5c3775efe9e618fe4bc31c6ea5959be0704e5a72f513b766c407e04c36ea9
|
data/CHANGELOG.md
CHANGED
|
@@ -175,7 +175,8 @@ module Foobara
|
|
|
175
175
|
end
|
|
176
176
|
|
|
177
177
|
if has_default?
|
|
178
|
-
|
|
178
|
+
displayable_str = to_bash_str(default)
|
|
179
|
+
desc << "Default: #{displayable_str}"
|
|
179
180
|
end
|
|
180
181
|
|
|
181
182
|
unless desc.empty?
|
|
@@ -192,6 +193,18 @@ module Foobara
|
|
|
192
193
|
desc.join(" ")
|
|
193
194
|
end
|
|
194
195
|
end
|
|
196
|
+
|
|
197
|
+
private
|
|
198
|
+
|
|
199
|
+
def to_bash_str(inp_str)
|
|
200
|
+
stripped_str = inp_str.to_s.strip
|
|
201
|
+
|
|
202
|
+
if stripped_str.match?(/\s/)
|
|
203
|
+
stripped_str.inspect
|
|
204
|
+
else
|
|
205
|
+
stripped_str
|
|
206
|
+
end
|
|
207
|
+
end
|
|
195
208
|
end
|
|
196
209
|
end
|
|
197
210
|
end
|