doing 2.1.39 → 2.1.42
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/.yardopts +1 -1
- data/CHANGELOG.md +67 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +4 -4
- data/bin/commands/again.rb +1 -3
- data/bin/commands/changes.rb +50 -34
- data/bin/commands/commands.rb +77 -52
- data/bin/commands/commands_accepting.rb +57 -53
- data/bin/commands/config.rb +45 -36
- data/bin/commands/done.rb +1 -18
- data/bin/commands/finish.rb +90 -59
- data/bin/commands/flag.rb +5 -1
- data/bin/commands/grep.rb +3 -14
- data/bin/commands/last.rb +2 -8
- data/bin/commands/meanwhile.rb +13 -6
- data/bin/commands/now.rb +151 -107
- data/bin/commands/on.rb +8 -18
- data/bin/commands/recent.rb +2 -8
- data/bin/commands/reset.rb +24 -1
- data/bin/commands/select.rb +1 -1
- data/bin/commands/show.rb +6 -17
- data/bin/commands/since.rb +1 -12
- data/bin/commands/tag_dir.rb +49 -15
- data/bin/commands/today.rb +2 -13
- data/bin/commands/undo.rb +4 -6
- data/bin/commands/view.rb +1 -1
- data/bin/commands/yesterday.rb +2 -13
- data/bin/doing +15 -8
- data/{Dockerfile → docker/Dockerfile} +3 -1
- data/{Dockerfile-2.6 → docker/Dockerfile-2.6} +2 -2
- data/{Dockerfile-2.7 → docker/Dockerfile-2.7} +2 -2
- data/{Dockerfile-3.0 → docker/Dockerfile-3.0} +2 -2
- data/{bash_profile → docker/bash_profile} +0 -0
- data/{inputrc → docker/inputrc} +0 -0
- data/docs/doc/Array.html +85 -2
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/ArrayNestedHash.html +198 -0
- data/docs/doc/Doing/ArrayTags.html +424 -0
- data/docs/doc/Doing/CSVExport.html +266 -0
- data/docs/doc/Doing/CalendarImport.html +232 -0
- data/docs/doc/Doing/Change.html +617 -0
- data/docs/doc/Doing/Changes.html +468 -0
- data/docs/doc/Doing/ChronifyArray.html +347 -0
- data/docs/doc/Doing/ChronifyNumeric.html +271 -0
- data/docs/doc/Doing/ChronifyString.html +682 -0
- data/docs/doc/Doing/Color.html +167 -21
- data/docs/doc/Doing/Completion/BashCompletions.html +445 -0
- data/docs/doc/Doing/Completion/FishCompletions.html +445 -0
- data/docs/doc/Doing/Completion/StringUtils.html +229 -0
- data/docs/doc/Doing/Completion/ZshCompletions.html +445 -0
- data/docs/doc/Doing/Completion.html +17 -3
- data/docs/doc/Doing/Configuration.html +3 -2
- data/docs/doc/Doing/DayOneRenderer.html +383 -0
- data/docs/doc/Doing/DayoneExport.html +290 -0
- data/docs/doc/Doing/DoingImport.html +391 -0
- data/docs/doc/Doing/Entry.html +381 -0
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +7 -3
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +7 -3
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +10 -2
- data/docs/doc/Doing/Errors/HistoryLimitError.html +194 -0
- data/docs/doc/Doing/Errors/InvalidPlugin.html +194 -0
- data/docs/doc/Doing/Errors/MissingBackupFile.html +194 -0
- data/docs/doc/Doing/Errors/NoResults.html +10 -2
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +10 -2
- data/docs/doc/Doing/Errors/WrongCommand.html +10 -2
- data/docs/doc/Doing/Errors.html +9 -9
- data/docs/doc/Doing/HTMLExport.html +256 -0
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +179 -1660
- data/docs/doc/Doing/ItemDates.html +564 -0
- data/docs/doc/Doing/ItemQuery.html +614 -0
- data/docs/doc/Doing/ItemState.html +387 -0
- data/docs/doc/Doing/ItemTags.html +498 -0
- data/docs/doc/Doing/Items.html +581 -15
- data/docs/doc/Doing/JSONExport.html +222 -0
- data/docs/doc/Doing/Logger.html +1 -1
- data/docs/doc/Doing/MarkdownExport.html +266 -0
- data/docs/doc/Doing/MarkdownRenderer.html +383 -0
- data/docs/doc/Doing/Note.html +18 -4
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +181 -76
- data/docs/doc/Doing/Prompt.html +32 -683
- data/docs/doc/Doing/PromptChoose.html +484 -0
- data/docs/doc/Doing/PromptFZF.html +391 -0
- data/docs/doc/Doing/PromptInput.html +572 -0
- data/docs/doc/Doing/PromptSTD.html +293 -0
- data/docs/doc/Doing/PromptYN.html +237 -0
- data/docs/doc/Doing/Section.html +58 -2
- data/docs/doc/Doing/StringHighlight.html +533 -0
- data/docs/doc/Doing/StringNormalize.html +929 -0
- data/docs/doc/Doing/StringQuery.html +725 -0
- data/docs/doc/Doing/StringTags.html +884 -0
- data/docs/doc/Doing/StringTransform.html +599 -0
- data/docs/doc/Doing/StringTruncate.html +448 -0
- data/docs/doc/Doing/StringURL.html +409 -0
- data/docs/doc/Doing/SymbolNormalize.html +341 -0
- data/docs/doc/Doing/TaskPaperExport.html +222 -0
- data/docs/doc/Doing/TemplateExport.html +249 -0
- data/docs/doc/Doing/TemplateString.html +102 -3
- data/docs/doc/Doing/TimingImport.html +285 -0
- data/docs/doc/Doing/Types.html +1 -1
- data/docs/doc/Doing/Util/Backup.html +11 -163
- data/docs/doc/Doing/Util.html +67 -10
- data/docs/doc/Doing/Version.html +523 -0
- data/docs/doc/Doing/WWID/WWIDUtil.html +510 -0
- data/docs/doc/Doing/WWID.html +476 -139
- data/docs/doc/Doing/WWIDDisplay.html +865 -0
- data/docs/doc/Doing/WWIDEditor.html +466 -0
- data/docs/doc/Doing/WWIDFileTools.html +359 -0
- data/docs/doc/Doing/WWIDFilter.html +466 -0
- data/docs/doc/Doing/WWIDGuess.html +299 -0
- data/docs/doc/Doing/WWIDInteractive.html +752 -0
- data/docs/doc/Doing/WWIDModify.html +1078 -0
- data/docs/doc/Doing/WWIDTags.html +302 -0
- data/docs/doc/Doing/WWIDTimers.html +359 -0
- data/docs/doc/Doing/WWIDUtil.html +510 -0
- data/docs/doc/Doing.html +9 -6
- data/docs/doc/FalseClass.html +1 -1
- data/docs/doc/GLI/Commands/Help.html +1 -1
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/Numeric.html +23 -78
- data/docs/doc/Object.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +58 -633
- data/docs/doc/Symbol.html +9 -224
- data/docs/doc/Time.html +119 -13
- data/docs/doc/TrueClass.html +1 -1
- data/docs/doc/_index.html +348 -4
- data/docs/doc/class_list.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +1904 -592
- data/docs/doc/top-level-namespace.html +12 -4
- data/docs/index.md +1 -1
- data/doing.rdoc +67 -15
- data/lib/completion/_doing.zsh +6 -6
- data/lib/completion/doing.bash +10 -10
- data/lib/completion/doing.fish +10 -3
- data/lib/doing/add_options.rb +39 -1
- data/lib/doing/array/array.rb +18 -12
- data/lib/doing/array/cleanup.rb +31 -0
- data/lib/doing/array/nested_hash.rb +1 -1
- data/lib/doing/array/tags.rb +6 -5
- data/lib/doing/changelog/changelog.rb +6 -0
- data/lib/doing/chronify/array.rb +65 -25
- data/lib/doing/chronify/chronify.rb +12 -0
- data/lib/doing/chronify/numeric.rb +3 -2
- data/lib/doing/chronify/string.rb +1 -1
- data/lib/doing/colors.rb +77 -30
- data/lib/doing/completion/completion_string.rb +25 -0
- data/lib/doing/completion.rb +4 -5
- data/lib/doing/configuration.rb +7 -3
- data/lib/doing/errors.rb +51 -35
- data/lib/doing/good.rb +8 -0
- data/lib/doing/hooks.rb +3 -3
- data/lib/doing/item/dates.rb +112 -0
- data/lib/doing/item/item.rb +128 -0
- data/lib/doing/{item.rb → item/query.rb} +2 -353
- data/lib/doing/item/state.rb +59 -0
- data/lib/doing/item/tags.rb +87 -0
- data/lib/doing/items/filter.rb +67 -0
- data/lib/doing/items/items.rb +57 -0
- data/lib/doing/items/modify.rb +36 -0
- data/lib/doing/items/sections.rb +83 -0
- data/lib/doing/items/util.rb +74 -0
- data/lib/doing/normalize.rb +10 -2
- data/lib/doing/note.rb +1 -1
- data/lib/doing/pager.rb +9 -3
- data/lib/doing/plugin_manager.rb +33 -8
- data/lib/doing/plugins/export/markdown_export.rb +4 -2
- data/lib/doing/plugins/export/template_export.rb +4 -4
- data/lib/doing/plugins/import/cal_to_json.scpt +0 -0
- data/lib/doing/plugins/import/doing_import.rb +1 -1
- data/lib/doing/prompt/choose.rb +118 -0
- data/lib/doing/prompt/fzf.rb +84 -0
- data/lib/doing/prompt/input.rb +129 -0
- data/lib/doing/prompt/prompt.rb +41 -0
- data/lib/doing/prompt/std.rb +32 -0
- data/lib/doing/prompt/yn.rb +64 -0
- data/lib/doing/section.rb +4 -0
- data/lib/doing/string/highlight.rb +1 -1
- data/lib/doing/string/query.rb +1 -1
- data/lib/doing/string/string.rb +18 -7
- data/lib/doing/string/tags.rb +14 -3
- data/lib/doing/string/transform.rb +7 -1
- data/lib/doing/string/truncate.rb +1 -1
- data/lib/doing/string/url.rb +1 -1
- data/lib/doing/time.rb +19 -1
- data/lib/doing/util.rb +12 -6
- data/lib/doing/util_backup.rb +62 -57
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid/display.rb +396 -0
- data/lib/doing/wwid/editor.rb +214 -0
- data/lib/doing/wwid/filetools.rb +183 -0
- data/lib/doing/wwid/filter.rb +226 -0
- data/lib/doing/wwid/guess.rb +85 -0
- data/lib/doing/wwid/interactive.rb +377 -0
- data/lib/doing/wwid/modify.rb +617 -0
- data/lib/doing/wwid/tags.rb +51 -0
- data/lib/doing/wwid/timers.rb +342 -0
- data/lib/doing/wwid/wwid.rb +121 -0
- data/lib/doing/wwid/wwidutil.rb +101 -0
- data/lib/doing.rb +7 -7
- data/lib/helpers/threaded_tests.rb +1 -0
- metadata +94 -14
- data/lib/doing/changelog.rb +0 -6
- data/lib/doing/completion/string.rb +0 -17
- data/lib/doing/items.rb +0 -196
- data/lib/doing/prompt.rb +0 -330
- data/lib/doing/wwid.rb +0 -2398
data/docs/doc/Doing/Prompt.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
<dl>
|
|
73
73
|
<dt>Extended by:</dt>
|
|
74
|
-
<dd><span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></dd>
|
|
74
|
+
<dd><span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span>, <span class='object_link'><a href="PromptChoose.html" title="Doing::PromptChoose (module)">PromptChoose</a></span>, <span class='object_link'><a href="PromptFZF.html" title="Doing::PromptFZF (module)">PromptFZF</a></span>, <span class='object_link'><a href="PromptInput.html" title="Doing::PromptInput (module)">PromptInput</a></span>, <span class='object_link'><a href="PromptSTD.html" title="Doing::PromptSTD (module)">PromptSTD</a></span>, <span class='object_link'><a href="PromptYN.html" title="Doing::PromptYN (module)">PromptYN</a></span></dd>
|
|
75
75
|
</dl>
|
|
76
76
|
|
|
77
77
|
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
<dl>
|
|
85
85
|
<dt>Defined in:</dt>
|
|
86
|
-
<dd>lib/doing/prompt.rb</dd>
|
|
86
|
+
<dd>lib/doing/prompt/prompt.rb</dd>
|
|
87
87
|
</dl>
|
|
88
88
|
|
|
89
89
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<li class="public ">
|
|
115
115
|
<span class="summary_signature">
|
|
116
116
|
|
|
117
|
-
<a href="#default_answer-class_method" title="default_answer (class method)">.<strong>default_answer</strong> ⇒
|
|
117
|
+
<a href="#default_answer-class_method" title="default_answer (class method)">.<strong>default_answer</strong> ⇒ Boolean </a>
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
@@ -131,7 +131,8 @@
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
<span class="summary_desc"><div class='inline'
|
|
134
|
+
<span class="summary_desc"><div class='inline'><p>If true, always return the default answer without prompting.</p>
|
|
135
|
+
</div></span>
|
|
135
136
|
|
|
136
137
|
</li>
|
|
137
138
|
|
|
@@ -156,255 +157,30 @@
|
|
|
156
157
|
|
|
157
158
|
|
|
158
159
|
|
|
159
|
-
<span class="summary_desc"><div class='inline'
|
|
160
|
-
|
|
161
|
-
</li>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</ul>
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<h2>
|
|
171
|
-
Class Method Summary
|
|
172
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
173
|
-
</h2>
|
|
174
|
-
|
|
175
|
-
<ul class="summary">
|
|
176
|
-
|
|
177
|
-
<li class="public ">
|
|
178
|
-
<span class="summary_signature">
|
|
179
|
-
|
|
180
|
-
<a href="#choose_from-class_method" title="choose_from (class method)">.<strong>choose_from</strong>(options, prompt: 'Make a selection: ', multiple: false, sorted: true, fzf_args: []) ⇒ String </a>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</span>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<span class="summary_desc"><div class='inline'><p>Generate a menu of options and allow user selection.</p>
|
|
195
|
-
</div></span>
|
|
196
|
-
|
|
197
|
-
</li>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<li class="public ">
|
|
201
|
-
<span class="summary_signature">
|
|
202
|
-
|
|
203
|
-
<a href="#choose_from_items-class_method" title="choose_from_items (class method)">.<strong>choose_from_items</strong>(items, **opt) ⇒ Object </a>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</span>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<span class="summary_desc"><div class='inline'><p>Create an interactive menu to select from a set of Items.</p>
|
|
218
|
-
</div></span>
|
|
219
|
-
|
|
220
|
-
</li>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
<li class="public ">
|
|
224
|
-
<span class="summary_signature">
|
|
225
|
-
|
|
226
|
-
<a href="#clear_screen-class_method" title="clear_screen (class method)">.<strong>clear_screen</strong>(msg = nil) ⇒ Object </a>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
</span>
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<span class="summary_desc"><div class='inline'><p>Clear the terminal screen.</p>
|
|
160
|
+
<span class="summary_desc"><div class='inline'><p>Value to return if prompt is skipped.</p>
|
|
241
161
|
</div></span>
|
|
242
162
|
|
|
243
163
|
</li>
|
|
244
164
|
|
|
245
|
-
|
|
246
|
-
<li class="public ">
|
|
247
|
-
<span class="summary_signature">
|
|
248
|
-
|
|
249
|
-
<a href="#enter_text-class_method" title="enter_text (class method)">.<strong>enter_text</strong>(prompt, default_response: '') ⇒ Object </a>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
</span>
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
264
|
-
|
|
265
|
-
</li>
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
<li class="public ">
|
|
269
|
-
<span class="summary_signature">
|
|
270
|
-
|
|
271
|
-
<a href="#fzf-class_method" title="fzf (class method)">.<strong>fzf</strong> ⇒ Object </a>
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
</span>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
286
|
-
|
|
287
|
-
</li>
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
<li class="public ">
|
|
291
|
-
<span class="summary_signature">
|
|
292
|
-
|
|
293
|
-
<a href="#install_fzf-class_method" title="install_fzf (class method)">.<strong>install_fzf</strong>(force: false) ⇒ Object </a>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
</span>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
308
|
-
|
|
309
|
-
</li>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
<li class="public ">
|
|
313
|
-
<span class="summary_signature">
|
|
314
|
-
|
|
315
|
-
<a href="#read_line-class_method" title="read_line (class method)">.<strong>read_line</strong>(prompt: 'Enter text', completions: [], default_response: '') ⇒ Object </a>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
</span>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
330
|
-
|
|
331
|
-
</li>
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
<li class="public ">
|
|
335
|
-
<span class="summary_signature">
|
|
336
|
-
|
|
337
|
-
<a href="#read_lines-class_method" title="read_lines (class method)">.<strong>read_lines</strong>(prompt: 'Enter text', completions: [], default_response: '') ⇒ Object </a>
|
|
338
165
|
|
|
166
|
+
</ul>
|
|
339
167
|
|
|
340
|
-
|
|
341
|
-
</span>
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
352
|
-
|
|
353
|
-
</li>
|
|
354
168
|
|
|
355
|
-
|
|
356
|
-
<li class="public ">
|
|
357
|
-
<span class="summary_signature">
|
|
358
|
-
|
|
359
|
-
<a href="#request_lines-class_method" title="request_lines (class method)">.<strong>request_lines</strong>(prompt: 'Enter text', default_response: '') ⇒ Object </a>
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
</span>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
169
|
|
|
372
|
-
|
|
373
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
374
|
-
|
|
375
|
-
</li>
|
|
376
170
|
|
|
377
|
-
|
|
378
|
-
<li class="public ">
|
|
379
|
-
<span class="summary_signature">
|
|
380
|
-
|
|
381
|
-
<a href="#restore_std-class_method" title="restore_std (class method)">.<strong>restore_std</strong> ⇒ Object </a>
|
|
382
|
-
|
|
383
171
|
|
|
384
|
-
|
|
385
|
-
</span>
|
|
386
172
|
|
|
387
173
|
|
|
388
174
|
|
|
389
175
|
|
|
390
176
|
|
|
391
177
|
|
|
178
|
+
<h2>Method Summary</h2>
|
|
392
179
|
|
|
180
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="PromptChoose.html" title="Doing::PromptChoose (module)">PromptChoose</a></span></h3>
|
|
181
|
+
<p class="inherited"><span class='object_link'><a href="PromptChoose.html#choose_from-instance_method" title="Doing::PromptChoose#choose_from (method)">choose_from</a></span>, <span class='object_link'><a href="PromptChoose.html#choose_from_items-instance_method" title="Doing::PromptChoose#choose_from_items (method)">choose_from_items</a></span></p>
|
|
393
182
|
|
|
394
183
|
|
|
395
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
396
|
-
|
|
397
|
-
</li>
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
<li class="public ">
|
|
401
|
-
<span class="summary_signature">
|
|
402
|
-
|
|
403
|
-
<a href="#silence_std-class_method" title="silence_std (class method)">.<strong>silence_std</strong>(file = '/dev/null') ⇒ Object </a>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
</span>
|
|
408
184
|
|
|
409
185
|
|
|
410
186
|
|
|
@@ -412,21 +188,10 @@
|
|
|
412
188
|
|
|
413
189
|
|
|
414
190
|
|
|
191
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="PromptFZF.html" title="Doing::PromptFZF (module)">PromptFZF</a></span></h3>
|
|
192
|
+
<p class="inherited"><span class='object_link'><a href="PromptFZF.html#fzf-instance_method" title="Doing::PromptFZF#fzf (method)">fzf</a></span>, <span class='object_link'><a href="PromptFZF.html#install_fzf-instance_method" title="Doing::PromptFZF#install_fzf (method)">install_fzf</a></span>, <span class='object_link'><a href="PromptFZF.html#uninstall_fzf-instance_method" title="Doing::PromptFZF#uninstall_fzf (method)">uninstall_fzf</a></span>, <span class='object_link'><a href="PromptFZF.html#which_fzf-instance_method" title="Doing::PromptFZF#which_fzf (method)">which_fzf</a></span></p>
|
|
415
193
|
|
|
416
194
|
|
|
417
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
418
|
-
|
|
419
|
-
</li>
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
<li class="public ">
|
|
423
|
-
<span class="summary_signature">
|
|
424
|
-
|
|
425
|
-
<a href="#uninstall_fzf-class_method" title="uninstall_fzf (class method)">.<strong>uninstall_fzf</strong> ⇒ Object </a>
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
</span>
|
|
430
195
|
|
|
431
196
|
|
|
432
197
|
|
|
@@ -434,21 +199,10 @@
|
|
|
434
199
|
|
|
435
200
|
|
|
436
201
|
|
|
202
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="PromptYN.html" title="Doing::PromptYN (module)">PromptYN</a></span></h3>
|
|
203
|
+
<p class="inherited"><span class='object_link'><a href="PromptYN.html#yn-instance_method" title="Doing::PromptYN#yn (method)">yn</a></span></p>
|
|
437
204
|
|
|
438
205
|
|
|
439
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
440
|
-
|
|
441
|
-
</li>
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
<li class="public ">
|
|
445
|
-
<span class="summary_signature">
|
|
446
|
-
|
|
447
|
-
<a href="#which_fzf-class_method" title="which_fzf (class method)">.<strong>which_fzf</strong> ⇒ Object </a>
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
</span>
|
|
452
206
|
|
|
453
207
|
|
|
454
208
|
|
|
@@ -456,39 +210,19 @@
|
|
|
456
210
|
|
|
457
211
|
|
|
458
212
|
|
|
213
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="PromptInput.html" title="Doing::PromptInput (module)">PromptInput</a></span></h3>
|
|
214
|
+
<p class="inherited"><span class='object_link'><a href="PromptInput.html#enter_text-instance_method" title="Doing::PromptInput#enter_text (method)">enter_text</a></span>, <span class='object_link'><a href="PromptInput.html#read_line-instance_method" title="Doing::PromptInput#read_line (method)">read_line</a></span>, <span class='object_link'><a href="PromptInput.html#read_lines-instance_method" title="Doing::PromptInput#read_lines (method)">read_lines</a></span>, <span class='object_link'><a href="PromptInput.html#request_lines-instance_method" title="Doing::PromptInput#request_lines (method)">request_lines</a></span></p>
|
|
459
215
|
|
|
460
216
|
|
|
461
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
462
|
-
|
|
463
|
-
</li>
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
<li class="public ">
|
|
467
|
-
<span class="summary_signature">
|
|
468
|
-
|
|
469
|
-
<a href="#yn-class_method" title="yn (class method)">.<strong>yn</strong>(question, default_response: false) ⇒ Bool </a>
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
</span>
|
|
474
|
-
|
|
475
|
-
|
|
476
217
|
|
|
477
218
|
|
|
478
219
|
|
|
479
220
|
|
|
480
221
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
<span class="summary_desc"><div class='inline'><p>Ask a yes or no question in the terminal.</p>
|
|
484
|
-
</div></span>
|
|
485
222
|
|
|
486
|
-
</li>
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
</ul>
|
|
490
223
|
|
|
491
|
-
|
|
224
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="PromptSTD.html" title="Doing::PromptSTD (module)">PromptSTD</a></span></h3>
|
|
225
|
+
<p class="inherited"><span class='object_link'><a href="PromptSTD.html#clear_screen-instance_method" title="Doing::PromptSTD#clear_screen (method)">clear_screen</a></span>, <span class='object_link'><a href="PromptSTD.html#restore_std-instance_method" title="Doing::PromptSTD#restore_std (method)">restore_std</a></span>, <span class='object_link'><a href="PromptSTD.html#silence_std-instance_method" title="Doing::PromptSTD#silence_std (method)">silence_std</a></span></p>
|
|
492
226
|
|
|
493
227
|
|
|
494
228
|
|
|
@@ -499,7 +233,7 @@
|
|
|
499
233
|
|
|
500
234
|
|
|
501
235
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
|
|
502
|
-
<p class="inherited"><span class='object_link'><a href="Color.html#attributes-
|
|
236
|
+
<p class="inherited"><span class='object_link'><a href="Color.html#attributes-instance_method" title="Doing::Color#attributes (method)">attributes</a></span>, <span class='object_link'><a href="Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">support?</a></span>, <span class='object_link'><a href="Color.html#template-class_method" title="Doing::Color.template (method)">template</a></span>, <span class='object_link'><a href="Color.html#uncolor-instance_method" title="Doing::Color#uncolor (method)">uncolor</a></span></p>
|
|
503
237
|
|
|
504
238
|
<div id="class_attr_details" class="attr_details">
|
|
505
239
|
<h2>Class Attribute Details</h2>
|
|
@@ -509,40 +243,7 @@
|
|
|
509
243
|
<div class="method_details first">
|
|
510
244
|
<h3 class="signature first" id="default_answer-class_method">
|
|
511
245
|
|
|
512
|
-
.<strong>default_answer</strong> ⇒ <tt
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
</h3>
|
|
519
|
-
</div>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
<span id="force_answer=-class_method"></span>
|
|
523
|
-
<div class="method_details ">
|
|
524
|
-
<h3 class="signature " id="force_answer-class_method">
|
|
525
|
-
|
|
526
|
-
.<strong>force_answer</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
</h3>
|
|
533
|
-
</div>
|
|
534
|
-
|
|
535
|
-
</div>
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
<div id="class_method_details" class="method_details_list">
|
|
539
|
-
<h2>Class Method Details</h2>
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
<div class="method_details first">
|
|
543
|
-
<h3 class="signature first" id="choose_from-class_method">
|
|
544
|
-
|
|
545
|
-
.<strong>choose_from</strong>(options, prompt: 'Make a selection: ', multiple: false, sorted: true, fzf_args: []) ⇒ <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
|
|
246
|
+
.<strong>default_answer</strong> ⇒ <tt>Boolean</tt>
|
|
546
247
|
|
|
547
248
|
|
|
548
249
|
|
|
@@ -550,7 +251,7 @@
|
|
|
550
251
|
|
|
551
252
|
</h3><div class="docstring">
|
|
552
253
|
<div class="discussion">
|
|
553
|
-
<p>
|
|
254
|
+
<p>If true, always return the default answer without prompting</p>
|
|
554
255
|
|
|
555
256
|
|
|
556
257
|
</div>
|
|
@@ -563,12 +264,12 @@
|
|
|
563
264
|
<li>
|
|
564
265
|
|
|
565
266
|
|
|
566
|
-
<span class='type'>(<tt
|
|
267
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
567
268
|
|
|
568
269
|
|
|
569
270
|
|
|
570
271
|
—
|
|
571
|
-
<div class='inline'><p>
|
|
272
|
+
<div class='inline'><p>default answer</p>
|
|
572
273
|
</div>
|
|
573
274
|
|
|
574
275
|
</li>
|
|
@@ -578,327 +279,12 @@
|
|
|
578
279
|
</div>
|
|
579
280
|
</div>
|
|
580
281
|
|
|
581
|
-
<div class="method_details ">
|
|
582
|
-
<h3 class="signature " id="choose_from_items-class_method">
|
|
583
|
-
|
|
584
|
-
.<strong>choose_from_items</strong>(items, **opt) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
</h3><div class="docstring">
|
|
591
|
-
<div class="discussion">
|
|
592
|
-
<p>Create an interactive menu to select from a set of Items</p>
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
</div>
|
|
596
|
-
</div>
|
|
597
|
-
<div class="tags">
|
|
598
|
-
<p class="tag_title">Parameters:</p>
|
|
599
|
-
<ul class="param">
|
|
600
|
-
|
|
601
|
-
<li>
|
|
602
|
-
|
|
603
|
-
<span class='name'>items</span>
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
—
|
|
611
|
-
<div class='inline'><p>list of items</p>
|
|
612
|
-
</div>
|
|
613
|
-
|
|
614
|
-
</li>
|
|
615
|
-
|
|
616
|
-
<li>
|
|
617
|
-
|
|
618
|
-
<span class='name'>opt</span>
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
<span class='type'></span>
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
—
|
|
626
|
-
<div class='inline'><p>Additional options</p>
|
|
627
|
-
</div>
|
|
628
|
-
|
|
629
|
-
</li>
|
|
630
|
-
|
|
631
|
-
</ul>
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
<p class="tag_title">Options Hash (<tt>**opt</tt>):</p>
|
|
639
|
-
<ul class="option">
|
|
640
|
-
|
|
641
|
-
<li>
|
|
642
|
-
<span class="name">:include_section</span>
|
|
643
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
644
|
-
<span class="default">
|
|
645
|
-
|
|
646
|
-
</span>
|
|
647
|
-
|
|
648
|
-
— <div class='inline'><p>Include section name for each item in menu</p>
|
|
649
|
-
</div>
|
|
650
|
-
|
|
651
|
-
</li>
|
|
652
|
-
|
|
653
|
-
<li>
|
|
654
|
-
<span class="name">:header</span>
|
|
655
|
-
<span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
656
|
-
<span class="default">
|
|
657
|
-
|
|
658
|
-
</span>
|
|
659
|
-
|
|
660
|
-
— <div class='inline'><p>A custom header string</p>
|
|
661
|
-
</div>
|
|
662
|
-
|
|
663
|
-
</li>
|
|
664
|
-
|
|
665
|
-
<li>
|
|
666
|
-
<span class="name">:prompt</span>
|
|
667
|
-
<span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
668
|
-
<span class="default">
|
|
669
|
-
|
|
670
|
-
</span>
|
|
671
|
-
|
|
672
|
-
— <div class='inline'><p>A custom prompt string</p>
|
|
673
|
-
</div>
|
|
674
|
-
|
|
675
|
-
</li>
|
|
676
|
-
|
|
677
|
-
<li>
|
|
678
|
-
<span class="name">:query</span>
|
|
679
|
-
<span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
680
|
-
<span class="default">
|
|
681
|
-
|
|
682
|
-
</span>
|
|
683
|
-
|
|
684
|
-
— <div class='inline'><p>Initial query</p>
|
|
685
|
-
</div>
|
|
686
|
-
|
|
687
|
-
</li>
|
|
688
|
-
|
|
689
|
-
<li>
|
|
690
|
-
<span class="name">:show_if_single</span>
|
|
691
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
692
|
-
<span class="default">
|
|
693
|
-
|
|
694
|
-
</span>
|
|
695
|
-
|
|
696
|
-
— <div class='inline'><p>Show menu even if there's only one option</p>
|
|
697
|
-
</div>
|
|
698
|
-
|
|
699
|
-
</li>
|
|
700
282
|
|
|
701
|
-
|
|
702
|
-
<span class="name">:menu</span>
|
|
703
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
704
|
-
<span class="default">
|
|
705
|
-
|
|
706
|
-
</span>
|
|
707
|
-
|
|
708
|
-
— <div class='inline'><p>Show menu</p>
|
|
709
|
-
</div>
|
|
710
|
-
|
|
711
|
-
</li>
|
|
712
|
-
|
|
713
|
-
<li>
|
|
714
|
-
<span class="name">:sort</span>
|
|
715
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
716
|
-
<span class="default">
|
|
717
|
-
|
|
718
|
-
</span>
|
|
719
|
-
|
|
720
|
-
— <div class='inline'><p>Sort options</p>
|
|
721
|
-
</div>
|
|
722
|
-
|
|
723
|
-
</li>
|
|
724
|
-
|
|
725
|
-
<li>
|
|
726
|
-
<span class="name">:multiple</span>
|
|
727
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
728
|
-
<span class="default">
|
|
729
|
-
|
|
730
|
-
</span>
|
|
731
|
-
|
|
732
|
-
— <div class='inline'><p>Allow multiple selections</p>
|
|
733
|
-
</div>
|
|
734
|
-
|
|
735
|
-
</li>
|
|
736
|
-
|
|
737
|
-
<li>
|
|
738
|
-
<span class="name">:case</span>
|
|
739
|
-
<span class="type">(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
740
|
-
<span class="default">
|
|
741
|
-
|
|
742
|
-
— default:
|
|
743
|
-
<tt>:sensitive</tt>, <tt>:ignore</tt>, <tt>:smart</tt>
|
|
744
|
-
|
|
745
|
-
</span>
|
|
746
|
-
|
|
747
|
-
</li>
|
|
748
|
-
|
|
749
|
-
</ul>
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
</div>
|
|
754
|
-
</div>
|
|
755
|
-
|
|
756
|
-
<div class="method_details ">
|
|
757
|
-
<h3 class="signature " id="clear_screen-class_method">
|
|
758
|
-
|
|
759
|
-
.<strong>clear_screen</strong>(msg = nil) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
</h3><div class="docstring">
|
|
766
|
-
<div class="discussion">
|
|
767
|
-
<p>Clear the terminal screen</p>
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
</div>
|
|
771
|
-
</div>
|
|
772
|
-
<div class="tags">
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
</div>
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
<div class="method_details ">
|
|
779
|
-
<h3 class="signature " id="enter_text-class_method">
|
|
780
|
-
|
|
781
|
-
.<strong>enter_text</strong>(prompt, default_response: '') ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
</h3>
|
|
788
|
-
</div>
|
|
789
|
-
|
|
790
|
-
<div class="method_details ">
|
|
791
|
-
<h3 class="signature " id="fzf-class_method">
|
|
792
|
-
|
|
793
|
-
.<strong>fzf</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
</h3>
|
|
800
|
-
</div>
|
|
801
|
-
|
|
802
|
-
<div class="method_details ">
|
|
803
|
-
<h3 class="signature " id="install_fzf-class_method">
|
|
804
|
-
|
|
805
|
-
.<strong>install_fzf</strong>(force: false) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
</h3>
|
|
812
|
-
</div>
|
|
813
|
-
|
|
814
|
-
<div class="method_details ">
|
|
815
|
-
<h3 class="signature " id="read_line-class_method">
|
|
816
|
-
|
|
817
|
-
.<strong>read_line</strong>(prompt: 'Enter text', completions: [], default_response: '') ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
</h3>
|
|
824
|
-
</div>
|
|
825
|
-
|
|
826
|
-
<div class="method_details ">
|
|
827
|
-
<h3 class="signature " id="read_lines-class_method">
|
|
828
|
-
|
|
829
|
-
.<strong>read_lines</strong>(prompt: 'Enter text', completions: [], default_response: '') ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
</h3>
|
|
836
|
-
</div>
|
|
837
|
-
|
|
838
|
-
<div class="method_details ">
|
|
839
|
-
<h3 class="signature " id="request_lines-class_method">
|
|
840
|
-
|
|
841
|
-
.<strong>request_lines</strong>(prompt: 'Enter text', default_response: '') ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
</h3>
|
|
848
|
-
</div>
|
|
849
|
-
|
|
850
|
-
<div class="method_details ">
|
|
851
|
-
<h3 class="signature " id="restore_std-class_method">
|
|
852
|
-
|
|
853
|
-
.<strong>restore_std</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
</h3>
|
|
860
|
-
</div>
|
|
861
|
-
|
|
862
|
-
<div class="method_details ">
|
|
863
|
-
<h3 class="signature " id="silence_std-class_method">
|
|
864
|
-
|
|
865
|
-
.<strong>silence_std</strong>(file = '/dev/null') ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
</h3>
|
|
872
|
-
</div>
|
|
873
|
-
|
|
874
|
-
<div class="method_details ">
|
|
875
|
-
<h3 class="signature " id="uninstall_fzf-class_method">
|
|
876
|
-
|
|
877
|
-
.<strong>uninstall_fzf</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
</h3>
|
|
884
|
-
</div>
|
|
885
|
-
|
|
886
|
-
<div class="method_details ">
|
|
887
|
-
<h3 class="signature " id="which_fzf-class_method">
|
|
888
|
-
|
|
889
|
-
.<strong>which_fzf</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
</h3>
|
|
896
|
-
</div>
|
|
897
|
-
|
|
283
|
+
<span id="force_answer=-class_method"></span>
|
|
898
284
|
<div class="method_details ">
|
|
899
|
-
<h3 class="signature " id="
|
|
285
|
+
<h3 class="signature " id="force_answer-class_method">
|
|
900
286
|
|
|
901
|
-
.<strong>
|
|
287
|
+
.<strong>force_answer</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
902
288
|
|
|
903
289
|
|
|
904
290
|
|
|
@@ -906,63 +292,25 @@
|
|
|
906
292
|
|
|
907
293
|
</h3><div class="docstring">
|
|
908
294
|
<div class="discussion">
|
|
909
|
-
<p>
|
|
295
|
+
<p>Value to return if prompt is skipped</p>
|
|
910
296
|
|
|
911
297
|
|
|
912
298
|
</div>
|
|
913
299
|
</div>
|
|
914
300
|
<div class="tags">
|
|
915
|
-
<p class="tag_title">Parameters:</p>
|
|
916
|
-
<ul class="param">
|
|
917
301
|
|
|
918
|
-
<li>
|
|
919
|
-
|
|
920
|
-
<span class='name'>question</span>
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
—
|
|
928
|
-
<div class='inline'><p>The question
|
|
929
|
-
to ask</p>
|
|
930
|
-
</div>
|
|
931
|
-
|
|
932
|
-
</li>
|
|
933
|
-
|
|
934
|
-
<li>
|
|
935
|
-
|
|
936
|
-
<span class='name'>default_response</span>
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
<span class='type'>(<tt>Bool</tt>)</span>
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
—
|
|
946
|
-
<div class='inline'><p>default
|
|
947
|
-
response if no input</p>
|
|
948
|
-
</div>
|
|
949
|
-
|
|
950
|
-
</li>
|
|
951
|
-
|
|
952
|
-
</ul>
|
|
953
|
-
|
|
954
302
|
<p class="tag_title">Returns:</p>
|
|
955
303
|
<ul class="return">
|
|
956
304
|
|
|
957
305
|
<li>
|
|
958
306
|
|
|
959
307
|
|
|
960
|
-
<span class='type'
|
|
308
|
+
<span class='type'></span>
|
|
961
309
|
|
|
962
310
|
|
|
963
311
|
|
|
964
|
-
|
|
965
|
-
<div class='inline'><p>
|
|
312
|
+
|
|
313
|
+
<div class='inline'><p>Force answer value</p>
|
|
966
314
|
</div>
|
|
967
315
|
|
|
968
316
|
</li>
|
|
@@ -974,10 +322,11 @@ response if no input</p>
|
|
|
974
322
|
|
|
975
323
|
</div>
|
|
976
324
|
|
|
325
|
+
|
|
977
326
|
</div>
|
|
978
327
|
|
|
979
328
|
<div id="footer">
|
|
980
|
-
Generated on
|
|
329
|
+
Generated on Fri Mar 18 12:56:58 2022 by
|
|
981
330
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
982
331
|
0.9.27 (ruby-3.0.1).
|
|
983
332
|
</div>
|