Runs all available tools for the specified IDE: clean-db and then modify-ids.
(ctx, ide: str, keyword: str)
| 107 | help=get_text("cli.keyword_clean_help")) |
| 108 | @click.pass_context |
| 109 | def run_all_command(ctx, ide: str, keyword: str): |
| 110 | """Runs all available tools for the specified IDE: clean-db and then modify-ids.""" |
| 111 | try: |
| 112 | ide_type = parse_ide_type(ide) |
| 113 | ide_name = get_ide_display_name(ide_type) |
| 114 | |
| 115 | print_info(get_text("cli.executing", operation=f"Run All Tools for {ide_name}")) |
| 116 | |
| 117 | print_info(get_text("cli.step", step="1", operation=f"{ide_name} Database Cleaning")) |
| 118 | try: |
| 119 | ctx.invoke(clean_db_command, ide=ide, keyword=keyword) |
| 120 | except Exception as e: |
| 121 | print_error(get_text("cli.error_occurred", step="database cleaning", error=str(e))) |
| 122 | print_warning(get_text("cli.proceeding")) |
| 123 | |
| 124 | print_info(get_text("cli.step", step="2", operation=f"{ide_name} Telemetry ID Modification")) |
| 125 | try: |
| 126 | ctx.invoke(modify_ids_command, ide=ide) |
| 127 | except Exception as e: |
| 128 | print_error(get_text("cli.error_occurred", step="telemetry ID modification", error=str(e))) |
| 129 | |
| 130 | print_success(get_text("cli.all_finished", ide_name=ide_name)) |
| 131 | |
| 132 | except click.BadParameter as e: |
| 133 | print_error(str(e)) |
| 134 | return |
| 135 | |
| 136 | # Legacy commands for backward compatibility |
| 137 | @main_cli.command("clean-vscode-db", hidden=True) |
nothing calls this directly
no test coverage detected