Cleans the specified IDE's state database by removing entries matching the keyword.
(ide: str, keyword: str)
| 64 | @click.option('--keyword', default='augment', show_default=True, |
| 65 | help=get_text("cli.keyword_option_help")) |
| 66 | def clean_db_command(ide: str, keyword: str): |
| 67 | """Cleans the specified IDE's state database by removing entries matching the keyword.""" |
| 68 | try: |
| 69 | ide_type = parse_ide_type(ide) |
| 70 | ide_name = get_ide_display_name(ide_type) |
| 71 | |
| 72 | print_info(get_text("cli.executing", operation=f"{ide_name} Database Cleaning (keyword: '{keyword}')")) |
| 73 | |
| 74 | if clean_ide_database(ide_type, keyword): |
| 75 | print_info(get_text("cli.finished")) |
| 76 | else: |
| 77 | print_error(get_text("cli.errors")) |
| 78 | |
| 79 | except click.BadParameter as e: |
| 80 | print_error(str(e)) |
| 81 | return |
| 82 | |
| 83 | @main_cli.command("modify-ids") |
| 84 | @click.option('--ide', default='vscode', show_default=True, |
nothing calls this directly
no test coverage detected