@@ -168,7 +168,7 @@ def clear(path: str):
168
168
execute_cm_cli (["clear" , path ])
169
169
170
170
171
- def show_completer (incomplete : str ) -> List [str ]:
171
+ def show_completer (incomplete : str ) -> list [str ]:
172
172
valid_choices = [
173
173
"installed" ,
174
174
"enabled" ,
@@ -181,12 +181,12 @@ def show_completer(incomplete: str) -> List[str]:
181
181
return [choice for choice in valid_choices if choice .startswith (incomplete )]
182
182
183
183
184
- def mode_completion (incomplete : str ) -> list [str ]:
184
+ def mode_completer (incomplete : str ) -> list [str ]:
185
185
modes = ["remote" , "local" , "cache" ]
186
186
return [mode for mode in modes if mode .startswith (incomplete )]
187
187
188
188
189
- def channel_completion (incomplete : str ) -> list [str ]:
189
+ def channel_completer (incomplete : str ) -> list [str ]:
190
190
modes = ["default" , "recent" , "dev" , "forked" , "tutorial" , "legacy" ]
191
191
return [mode for mode in modes if mode .startswith (incomplete )]
192
192
@@ -203,13 +203,13 @@ def show(
203
203
typer .Option (
204
204
show_default = False ,
205
205
help = "Specify the operation mode" ,
206
- autocompletion = channel_completion ,
206
+ autocompletion = channel_completer ,
207
207
),
208
208
] = None ,
209
209
mode : str = typer .Option (
210
210
None ,
211
211
help = "[remote|local|cache]" ,
212
- autocompletion = mode_completion ,
212
+ autocompletion = mode_completer ,
213
213
),
214
214
):
215
215
valid_commands = [
@@ -248,13 +248,13 @@ def simple_show(
248
248
typer .Option (
249
249
show_default = False ,
250
250
help = "Specify the operation mode" ,
251
- autocompletion = channel_completion ,
251
+ autocompletion = channel_completer ,
252
252
),
253
253
] = None ,
254
254
mode : str = typer .Option (
255
255
None ,
256
256
help = "[remote|local|cache]" ,
257
- autocompletion = mode_completion ,
257
+ autocompletion = mode_completer ,
258
258
),
259
259
):
260
260
valid_commands = [
@@ -291,13 +291,13 @@ def install(
291
291
typer .Option (
292
292
show_default = False ,
293
293
help = "Specify the operation mode" ,
294
- autocompletion = channel_completion ,
294
+ autocompletion = channel_completer ,
295
295
),
296
296
] = None ,
297
297
mode : str = typer .Option (
298
298
None ,
299
299
help = "[remote|local|cache]" ,
300
- autocompletion = mode_completion ,
300
+ autocompletion = mode_completer ,
301
301
),
302
302
):
303
303
if "all" in args :
@@ -324,13 +324,13 @@ def reinstall(
324
324
typer .Option (
325
325
show_default = False ,
326
326
help = "Specify the operation mode" ,
327
- autocompletion = channel_completion ,
327
+ autocompletion = channel_completer ,
328
328
),
329
329
] = None ,
330
330
mode : str = typer .Option (
331
331
None ,
332
332
help = "[remote|local|cache]" ,
333
- autocompletion = mode_completion ,
333
+ autocompletion = mode_completer ,
334
334
),
335
335
):
336
336
if "all" in args :
@@ -357,13 +357,13 @@ def uninstall(
357
357
typer .Option (
358
358
show_default = False ,
359
359
help = "Specify the operation mode" ,
360
- autocompletion = channel_completion ,
360
+ autocompletion = channel_completer ,
361
361
),
362
362
] = None ,
363
363
mode : str = typer .Option (
364
364
None ,
365
365
help = "[remote|local|cache]" ,
366
- autocompletion = mode_completion ,
366
+ autocompletion = mode_completer ,
367
367
),
368
368
):
369
369
if "all" in args :
@@ -393,13 +393,13 @@ def update(
393
393
typer .Option (
394
394
show_default = False ,
395
395
help = "Specify the operation mode" ,
396
- autocompletion = channel_completion ,
396
+ autocompletion = channel_completer ,
397
397
),
398
398
] = None ,
399
399
mode : str = typer .Option (
400
400
None ,
401
401
help = "[remote|local|cache]" ,
402
- autocompletion = mode_completion ,
402
+ autocompletion = mode_completer ,
403
403
),
404
404
):
405
405
valid_modes = ["remote" , "local" , "cache" ]
@@ -422,13 +422,13 @@ def disable(
422
422
typer .Option (
423
423
show_default = False ,
424
424
help = "Specify the operation mode" ,
425
- autocompletion = channel_completion ,
425
+ autocompletion = channel_completer ,
426
426
),
427
427
] = None ,
428
428
mode : str = typer .Option (
429
429
None ,
430
430
help = "[remote|local|cache]" ,
431
- autocompletion = mode_completion ,
431
+ autocompletion = mode_completer ,
432
432
),
433
433
):
434
434
valid_modes = ["remote" , "local" , "cache" ]
@@ -451,13 +451,13 @@ def enable(
451
451
typer .Option (
452
452
show_default = False ,
453
453
help = "Specify the operation mode" ,
454
- autocompletion = channel_completion ,
454
+ autocompletion = channel_completer ,
455
455
),
456
456
] = None ,
457
457
mode : str = typer .Option (
458
458
None ,
459
459
help = "[remote|local|cache]" ,
460
- autocompletion = mode_completion ,
460
+ autocompletion = mode_completer ,
461
461
),
462
462
):
463
463
valid_modes = ["remote" , "local" , "cache" ]
@@ -482,13 +482,13 @@ def fix(
482
482
typer .Option (
483
483
show_default = False ,
484
484
help = "Specify the operation mode" ,
485
- autocompletion = channel_completion ,
485
+ autocompletion = channel_completer ,
486
486
),
487
487
] = None ,
488
488
mode : str = typer .Option (
489
489
None ,
490
490
help = "[remote|local|cache]" ,
491
- autocompletion = mode_completion ,
491
+ autocompletion = mode_completer ,
492
492
),
493
493
):
494
494
valid_modes = ["remote" , "local" , "cache" ]
@@ -519,13 +519,13 @@ def install_deps(
519
519
typer .Option (
520
520
show_default = False ,
521
521
help = "Specify the operation mode" ,
522
- autocompletion = channel_completion ,
522
+ autocompletion = channel_completer ,
523
523
),
524
524
] = None ,
525
525
mode : str = typer .Option (
526
526
None ,
527
527
help = "[remote|local|cache]" ,
528
- autocompletion = mode_completion ,
528
+ autocompletion = mode_completer ,
529
529
),
530
530
):
531
531
valid_modes = ["remote" , "local" , "cache" ]
@@ -583,13 +583,13 @@ def deps_in_workflow(
583
583
typer .Option (
584
584
show_default = False ,
585
585
help = "Specify the operation mode" ,
586
- autocompletion = channel_completion ,
586
+ autocompletion = channel_completer ,
587
587
),
588
588
] = None ,
589
589
mode : str = typer .Option (
590
590
None ,
591
591
help = "[remote|local|cache]" ,
592
- autocompletion = mode_completion ,
592
+ autocompletion = mode_completer ,
593
593
),
594
594
):
595
595
valid_modes = ["remote" , "local" , "cache" ]
0 commit comments