bashly 1.3.8 → 1.4.0.rc1

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.
@@ -4,112 +4,516 @@
4
4
  # completely (https://github.com/bashly-framework/completely)
5
5
  # Modifying it manually is not recommended
6
6
 
7
- _bashly_completions_filter() {
8
- local words="$1"
9
- local cur=${COMP_WORDS[COMP_CWORD]}
10
- local result=()
7
+ _bashly_completions_route_flag_expects_value() {
8
+ case "$1:$2" in
9
+ 4:--env|4:-e) return 0 ;;
10
+ 4:--wrap|4:-r) return 0 ;;
11
+ 5:--source|5:-s) return 0 ;;
12
+ 8:--show|8:-s) return 0 ;;
13
+ esac
11
14
 
12
- if [[ "${cur:0:1}" == "-" ]]; then
13
- echo "$words"
14
-
15
- else
16
- for word in $words; do
17
- [[ "${word:0:1}" != "-" ]] && result+=("$word")
18
- done
15
+ return 1
16
+ }
19
17
 
20
- echo "${result[*]}"
18
+ _bashly_completions_resolve_route() {
19
+ route_id=
20
+ route_word_count=-1
21
+ route_has_positionals=0
22
+ positional_index=0
23
+ if (( ${#non_options[@]} >= 0 )) &&
24
+ (( 0 > route_word_count ))
25
+ then
26
+ route_id=0
27
+ route_word_count=0
28
+ route_has_positionals=0
29
+ positional_index=$((${#non_options[@]} - 0))
30
+ fi
21
31
 
32
+ if (( ${#non_options[@]} >= 1 )) &&
33
+ (( 1 > route_word_count )) &&
34
+ [[ "${non_options[0]}" == "init" || "${non_options[0]}" == "i" ]]
35
+ then
36
+ route_id=1
37
+ route_word_count=1
38
+ route_has_positionals=0
39
+ positional_index=$((${#non_options[@]} - 1))
22
40
  fi
23
- }
24
41
 
25
- _bashly_completions() {
26
- local cur=${COMP_WORDS[COMP_CWORD]}
27
- local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}")
28
- local compline="${compwords[*]}"
42
+ if (( ${#non_options[@]} >= 1 )) &&
43
+ (( 1 > route_word_count )) &&
44
+ [[ "${non_options[0]}" == "preview" || "${non_options[0]}" == "p" ]]
45
+ then
46
+ route_id=2
47
+ route_word_count=1
48
+ route_has_positionals=0
49
+ positional_index=$((${#non_options[@]} - 1))
50
+ fi
29
51
 
30
- case "$compline" in
31
- 'generate'*'--env')
32
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" )
33
- ;;
52
+ if (( ${#non_options[@]} >= 1 )) &&
53
+ (( 1 > route_word_count )) &&
54
+ [[ "${non_options[0]}" == "validate" || "${non_options[0]}" == "v" ]]
55
+ then
56
+ route_id=3
57
+ route_word_count=1
58
+ route_has_positionals=0
59
+ positional_index=$((${#non_options[@]} - 1))
60
+ fi
34
61
 
35
- 'generate'*'-e')
36
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" )
37
- ;;
62
+ if (( ${#non_options[@]} >= 1 )) &&
63
+ (( 1 > route_word_count )) &&
64
+ [[ "${non_options[0]}" == "generate" || "${non_options[0]}" == "build" || "${non_options[0]}" == "g" ]]
65
+ then
66
+ route_id=4
67
+ route_word_count=1
68
+ route_has_positionals=0
69
+ positional_index=$((${#non_options[@]} - 1))
70
+ fi
38
71
 
39
- 'completions'*)
40
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --install -i")" -- "$cur" )
41
- ;;
72
+ if (( ${#non_options[@]} >= 1 )) &&
73
+ (( 1 > route_word_count )) &&
74
+ [[ "${non_options[0]}" == "add" || "${non_options[0]}" == "a" ]]
75
+ then
76
+ route_id=5
77
+ route_word_count=1
78
+ route_has_positionals=1
79
+ positional_index=$((${#non_options[@]} - 1))
80
+ fi
42
81
 
43
- 'validate'*)
44
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --verbose -v")" -- "$cur" )
45
- ;;
82
+ if (( ${#non_options[@]} >= 1 )) &&
83
+ (( 1 > route_word_count )) &&
84
+ [[ "${non_options[0]}" == "doc" ]]
85
+ then
86
+ route_id=6
87
+ route_word_count=1
88
+ route_has_positionals=1
89
+ positional_index=$((${#non_options[@]} - 1))
90
+ fi
46
91
 
47
- 'generate'*)
48
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --env --force --quiet --upgrade --watch --wrap -e -f -q -r -u -w")" -- "$cur" )
49
- ;;
92
+ if (( ${#non_options[@]} >= 1 )) &&
93
+ (( 1 > route_word_count )) &&
94
+ [[ "${non_options[0]}" == "completions" || "${non_options[0]}" == "c" ]]
95
+ then
96
+ route_id=7
97
+ route_word_count=1
98
+ route_has_positionals=0
99
+ positional_index=$((${#non_options[@]} - 1))
100
+ fi
50
101
 
51
- 'preview'*)
52
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" )
53
- ;;
102
+ if (( ${#non_options[@]} >= 1 )) &&
103
+ (( 1 > route_word_count )) &&
104
+ [[ "${non_options[0]}" == "render" ]]
105
+ then
106
+ route_id=8
107
+ route_word_count=1
108
+ route_has_positionals=1
109
+ positional_index=$((${#non_options[@]} - 1))
110
+ fi
54
111
 
55
- 'g'*'--env')
56
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" )
57
- ;;
112
+ if (( ${#non_options[@]} >= 1 )) &&
113
+ (( 1 > route_word_count )) &&
114
+ [[ "${non_options[0]}" == "shell" || "${non_options[0]}" == "s" ]]
115
+ then
116
+ route_id=9
117
+ route_word_count=1
118
+ route_has_positionals=0
119
+ positional_index=$((${#non_options[@]} - 1))
120
+ fi
58
121
 
59
- 'shell'*)
60
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" )
61
- ;;
122
+ }
62
123
 
63
- 'init'*)
64
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --minimal -m")" -- "$cur" )
65
- ;;
124
+ _bashly_completions() {
125
+ local cur=${COMP_WORDS[COMP_CWORD]}
126
+ local prev=
127
+ if ((COMP_CWORD > 0)); then
128
+ prev=${COMP_WORDS[$((COMP_CWORD - 1))]}
129
+ fi
66
130
 
67
- 'g'*'-e')
68
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" )
69
- ;;
131
+ local completed=()
132
+ if ((COMP_CWORD > 1)); then
133
+ completed=("${COMP_WORDS[@]:1:$((COMP_CWORD - 1))}")
134
+ fi
70
135
 
71
- 'add'*)
72
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --force --list --source -f -l -s colors completions completions_script completions_yaml config help hooks lib settings strings test validations yaml")" -- "$cur" )
73
- ;;
136
+ local non_options=()
137
+ local completed_options=()
138
+ local route_id=
139
+ local route_word_count=-1
140
+ local route_has_positionals=0
141
+ local positional_index=0
142
+ _bashly_completions_resolve_route
74
143
 
75
- 'doc'*)
76
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --index -i arg arg.allowed arg.default arg.help arg.name arg.repeatable arg.required arg.validate command command.alias command.args command.catch_all command.commands command.completions command.default command.dependencies command.environment_variables command.examples command.expose command.extensible command.filename command.filters command.flags command.footer command.function command.group command.help command.name command.private command.version environment_variable environment_variable.default environment_variable.help environment_variable.name environment_variable.private environment_variable.required flag flag.allowed flag.arg flag.completions flag.conflicts flag.default flag.help flag.long flag.private flag.repeatable flag.required flag.short flag.validate")" -- "$cur" )
77
- ;;
144
+ local skip_next=0
145
+ for word in "${completed[@]}"; do
146
+ if ((skip_next)); then
147
+ skip_next=0
148
+ continue
149
+ fi
78
150
 
79
- 'i'*)
80
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --minimal -m")" -- "$cur" )
81
- ;;
151
+ if [[ "${word:0:1}" == "-" ]]; then
152
+ completed_options+=("$word")
153
+ if _bashly_completions_route_flag_expects_value "$route_id" "$word"; then
154
+ skip_next=1
155
+ fi
156
+ continue
157
+ fi
82
158
 
83
- 'p'*)
84
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" )
85
- ;;
159
+ non_options+=("$word")
160
+ _bashly_completions_resolve_route
161
+ done
86
162
 
87
- 'v'*)
88
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --verbose -v")" -- "$cur" )
89
- ;;
163
+ COMPREPLY=()
90
164
 
91
- 'g'*)
92
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --env --force --quiet --upgrade --watch --wrap -e -f -q -r -u -w")" -- "$cur" )
93
- ;;
165
+ if [[ -z "$route_id" ]] || { (( route_word_count == 0 )) && (( !route_has_positionals )) && [[ "${cur:0:1}" != "-" ]]; }; then
166
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "init i preview p validate v generate build g add a doc completions c render shell s" -- "$cur")
167
+ return
168
+ fi
94
169
 
95
- 'a'*)
96
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --force --list --source -f -l -s colors completions completions_script completions_yaml config help hooks lib settings strings test validations yaml")" -- "$cur" )
170
+ case "$route_id:$prev" in
171
+ 4:--env|4:-e)
172
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "development production" -- "$cur")
173
+ return
97
174
  ;;
98
-
99
- 'c'*)
100
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --install -i")" -- "$cur" )
175
+ 4:--wrap|4:-r)
176
+ return
101
177
  ;;
102
-
103
- 's'*)
104
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" )
178
+ 5:--source|5:-s)
179
+ return
105
180
  ;;
106
-
107
- *)
108
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --version -v init preview validate generate add doc completions shell")" -- "$cur" )
181
+ 8:--show|8:-s)
182
+ return
109
183
  ;;
184
+ esac
110
185
 
186
+ if [[ "${cur:0:1}" == "-" ]]; then
187
+ case "$route_id" in
188
+ 0)
189
+ local words=()
190
+ local option_seen=0
191
+ for completed_option in "${completed_options[@]}"; do
192
+ case "$completed_option" in
193
+ --help|-h) option_seen=1 ;;
194
+ esac
195
+ done
196
+ if ((!option_seen)); then
197
+ words+=("--help" "-h")
198
+ fi
199
+ local option_seen=0
200
+ for completed_option in "${completed_options[@]}"; do
201
+ case "$completed_option" in
202
+ --version|-v) option_seen=1 ;;
203
+ esac
204
+ done
205
+ if ((!option_seen)); then
206
+ words+=("--version" "-v")
207
+ fi
208
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
209
+ return
210
+ ;;
211
+ 1)
212
+ local words=()
213
+ local option_seen=0
214
+ for completed_option in "${completed_options[@]}"; do
215
+ case "$completed_option" in
216
+ --help|-h) option_seen=1 ;;
217
+ esac
218
+ done
219
+ if ((!option_seen)); then
220
+ words+=("--help" "-h")
221
+ fi
222
+ local option_seen=0
223
+ for completed_option in "${completed_options[@]}"; do
224
+ case "$completed_option" in
225
+ --minimal|-m) option_seen=1 ;;
226
+ esac
227
+ done
228
+ if ((!option_seen)); then
229
+ words+=("--minimal" "-m")
230
+ fi
231
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
232
+ return
233
+ ;;
234
+ 2)
235
+ local words=()
236
+ local option_seen=0
237
+ for completed_option in "${completed_options[@]}"; do
238
+ case "$completed_option" in
239
+ --help|-h) option_seen=1 ;;
240
+ esac
241
+ done
242
+ if ((!option_seen)); then
243
+ words+=("--help" "-h")
244
+ fi
245
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
246
+ return
247
+ ;;
248
+ 3)
249
+ local words=()
250
+ local option_seen=0
251
+ for completed_option in "${completed_options[@]}"; do
252
+ case "$completed_option" in
253
+ --help|-h) option_seen=1 ;;
254
+ esac
255
+ done
256
+ if ((!option_seen)); then
257
+ words+=("--help" "-h")
258
+ fi
259
+ local option_seen=0
260
+ for completed_option in "${completed_options[@]}"; do
261
+ case "$completed_option" in
262
+ --verbose|-v) option_seen=1 ;;
263
+ esac
264
+ done
265
+ if ((!option_seen)); then
266
+ words+=("--verbose" "-v")
267
+ fi
268
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
269
+ return
270
+ ;;
271
+ 4)
272
+ local words=()
273
+ local option_seen=0
274
+ for completed_option in "${completed_options[@]}"; do
275
+ case "$completed_option" in
276
+ --help|-h) option_seen=1 ;;
277
+ esac
278
+ done
279
+ if ((!option_seen)); then
280
+ words+=("--help" "-h")
281
+ fi
282
+ local option_seen=0
283
+ for completed_option in "${completed_options[@]}"; do
284
+ case "$completed_option" in
285
+ --env|-e) option_seen=1 ;;
286
+ esac
287
+ done
288
+ if ((!option_seen)); then
289
+ words+=("--env" "-e")
290
+ fi
291
+ local option_seen=0
292
+ for completed_option in "${completed_options[@]}"; do
293
+ case "$completed_option" in
294
+ --force|-f) option_seen=1 ;;
295
+ esac
296
+ done
297
+ if ((!option_seen)); then
298
+ words+=("--force" "-f")
299
+ fi
300
+ local option_seen=0
301
+ for completed_option in "${completed_options[@]}"; do
302
+ case "$completed_option" in
303
+ --quiet|-q) option_seen=1 ;;
304
+ esac
305
+ done
306
+ if ((!option_seen)); then
307
+ words+=("--quiet" "-q")
308
+ fi
309
+ local option_seen=0
310
+ for completed_option in "${completed_options[@]}"; do
311
+ case "$completed_option" in
312
+ --upgrade|-u) option_seen=1 ;;
313
+ esac
314
+ done
315
+ if ((!option_seen)); then
316
+ words+=("--upgrade" "-u")
317
+ fi
318
+ local option_seen=0
319
+ for completed_option in "${completed_options[@]}"; do
320
+ case "$completed_option" in
321
+ --watch|-w) option_seen=1 ;;
322
+ esac
323
+ done
324
+ if ((!option_seen)); then
325
+ words+=("--watch" "-w")
326
+ fi
327
+ local option_seen=0
328
+ for completed_option in "${completed_options[@]}"; do
329
+ case "$completed_option" in
330
+ --wrap|-r) option_seen=1 ;;
331
+ esac
332
+ done
333
+ if ((!option_seen)); then
334
+ words+=("--wrap" "-r")
335
+ fi
336
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
337
+ return
338
+ ;;
339
+ 5)
340
+ local words=()
341
+ local option_seen=0
342
+ for completed_option in "${completed_options[@]}"; do
343
+ case "$completed_option" in
344
+ --help|-h) option_seen=1 ;;
345
+ esac
346
+ done
347
+ if ((!option_seen)); then
348
+ words+=("--help" "-h")
349
+ fi
350
+ local option_seen=0
351
+ for completed_option in "${completed_options[@]}"; do
352
+ case "$completed_option" in
353
+ --force|-f) option_seen=1 ;;
354
+ esac
355
+ done
356
+ if ((!option_seen)); then
357
+ words+=("--force" "-f")
358
+ fi
359
+ local option_seen=0
360
+ for completed_option in "${completed_options[@]}"; do
361
+ case "$completed_option" in
362
+ --list|-l) option_seen=1 ;;
363
+ esac
364
+ done
365
+ if ((!option_seen)); then
366
+ words+=("--list" "-l")
367
+ fi
368
+ local option_seen=0
369
+ for completed_option in "${completed_options[@]}"; do
370
+ case "$completed_option" in
371
+ --source|-s) option_seen=1 ;;
372
+ esac
373
+ done
374
+ if ((!option_seen)); then
375
+ words+=("--source" "-s")
376
+ fi
377
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
378
+ return
379
+ ;;
380
+ 6)
381
+ local words=()
382
+ local option_seen=0
383
+ for completed_option in "${completed_options[@]}"; do
384
+ case "$completed_option" in
385
+ --help|-h) option_seen=1 ;;
386
+ esac
387
+ done
388
+ if ((!option_seen)); then
389
+ words+=("--help" "-h")
390
+ fi
391
+ local option_seen=0
392
+ for completed_option in "${completed_options[@]}"; do
393
+ case "$completed_option" in
394
+ --index|-i) option_seen=1 ;;
395
+ esac
396
+ done
397
+ if ((!option_seen)); then
398
+ words+=("--index" "-i")
399
+ fi
400
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
401
+ return
402
+ ;;
403
+ 7)
404
+ local words=()
405
+ local option_seen=0
406
+ for completed_option in "${completed_options[@]}"; do
407
+ case "$completed_option" in
408
+ --help|-h) option_seen=1 ;;
409
+ esac
410
+ done
411
+ if ((!option_seen)); then
412
+ words+=("--help" "-h")
413
+ fi
414
+ local option_seen=0
415
+ for completed_option in "${completed_options[@]}"; do
416
+ case "$completed_option" in
417
+ --install|-i) option_seen=1 ;;
418
+ esac
419
+ done
420
+ if ((!option_seen)); then
421
+ words+=("--install" "-i")
422
+ fi
423
+ local option_seen=0
424
+ for completed_option in "${completed_options[@]}"; do
425
+ case "$completed_option" in
426
+ --uninstall|-u) option_seen=1 ;;
427
+ esac
428
+ done
429
+ if ((!option_seen)); then
430
+ words+=("--uninstall" "-u")
431
+ fi
432
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
433
+ return
434
+ ;;
435
+ 8)
436
+ local words=()
437
+ local option_seen=0
438
+ for completed_option in "${completed_options[@]}"; do
439
+ case "$completed_option" in
440
+ --help|-h) option_seen=1 ;;
441
+ esac
442
+ done
443
+ if ((!option_seen)); then
444
+ words+=("--help" "-h")
445
+ fi
446
+ local option_seen=0
447
+ for completed_option in "${completed_options[@]}"; do
448
+ case "$completed_option" in
449
+ --watch|-w) option_seen=1 ;;
450
+ esac
451
+ done
452
+ if ((!option_seen)); then
453
+ words+=("--watch" "-w")
454
+ fi
455
+ local option_seen=0
456
+ for completed_option in "${completed_options[@]}"; do
457
+ case "$completed_option" in
458
+ --show|-s) option_seen=1 ;;
459
+ esac
460
+ done
461
+ if ((!option_seen)); then
462
+ words+=("--show" "-s")
463
+ fi
464
+ local option_seen=0
465
+ for completed_option in "${completed_options[@]}"; do
466
+ case "$completed_option" in
467
+ --list|-l) option_seen=1 ;;
468
+ esac
469
+ done
470
+ if ((!option_seen)); then
471
+ words+=("--list" "-l")
472
+ fi
473
+ local option_seen=0
474
+ for completed_option in "${completed_options[@]}"; do
475
+ case "$completed_option" in
476
+ --about|-a) option_seen=1 ;;
477
+ esac
478
+ done
479
+ if ((!option_seen)); then
480
+ words+=("--about" "-a")
481
+ fi
482
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
483
+ return
484
+ ;;
485
+ 9)
486
+ local words=()
487
+ local option_seen=0
488
+ for completed_option in "${completed_options[@]}"; do
489
+ case "$completed_option" in
490
+ --help|-h) option_seen=1 ;;
491
+ esac
492
+ done
493
+ if ((!option_seen)); then
494
+ words+=("--help" "-h")
495
+ fi
496
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "${words[*]}" -- "$cur")
497
+ return
498
+ ;;
499
+ esac
500
+ fi
501
+
502
+ case "$route_id:$positional_index" in
503
+ 5:0)
504
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "colors completions completions_script completions_yaml config help hooks ini lib render_markdown render_markdown_github render_mandoc settings stacktrace strings validations yaml" -- "$cur")
505
+ return
506
+ ;;
507
+ 6:0)
508
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "arg arg.allowed arg.completions arg.default arg.help arg.name arg.repeatable arg.required arg.validate command command.alias command.args command.catch_all command.commands command.completions command.default command.dependencies command.environment_variables command.examples command.expose command.extensible command.filename command.filters command.flags command.footer command.function command.group command.help command.help_header_override command.name command.private command.variables command.version environment_variable environment_variable.default environment_variable.help environment_variable.name environment_variable.private environment_variable.required environment_variable.validate flag flag.allowed flag.arg flag.completions flag.conflicts flag.default flag.help flag.long flag.needs flag.private flag.repeatable flag.required flag.short flag.unique flag.validate variable variable.name variable.value" -- "$cur")
509
+ return
510
+ ;;
511
+ 8:0)
512
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W ":mandoc :markdown :markdown_github" -- "$cur")
513
+ return
514
+ ;;
111
515
  esac
112
516
  } &&
113
- complete -F _bashly_completions bashly
517
+ complete -F _bashly_completions bashly
114
518
 
115
519
  # ex: filetype=sh