File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 22
33import logging
44
5- import click
6- import click .shell_completion # noqa: TC002
75import typer as t
86
97from llmling .config .store import config_store
2624VERBOSE_CMDS = "-v" , "--verbose"
2725
2826
29- def complete_config_names (
30- ctx : click .Context ,
31- param : click .Parameter ,
32- incomplete : str ,
33- ) -> list [str ] | list [click .shell_completion .CompletionItem ]:
27+ def complete_config_names () -> list [str ]:
3428 """Complete stored config names."""
35- names = [name for name , _ in config_store .list_configs ()]
36- return [name for name in names if name .startswith (incomplete )]
29+ return [name for name , _ in config_store .list_configs ()]
3730
3831
39- def complete_output_formats (
40- ctx : click .Context ,
41- param : click .Parameter ,
42- incomplete : str ,
43- ) -> list [str ]:
32+ def complete_output_formats () -> list [str ]:
4433 """Complete output format options."""
45- formats = ["text" , "json" , "yaml" ]
46- return [f for f in formats if f .startswith (incomplete )]
34+ return ["text" , "json" , "yaml" ]
4735
4836
4937def verbose_callback (ctx : t .Context , _param : t .CallbackParam , value : bool ) -> bool :
You can’t perform that action at this time.
0 commit comments