MCPcopy Index your code
hub / github.com/BasicProtein/AugmentCode-Free / run_all_command

Function run_all_command

augment_tools_core/cli.py:109–134  ·  view source on GitHub ↗

Runs all available tools for the specified IDE: clean-db and then modify-ids.

(ctx, ide: str, keyword: str)

Source from the content-addressed store, hash-verified

107 help=get_text("cli.keyword_clean_help"))
108@click.pass_context
109def 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)

Callers

nothing calls this directly

Calls 7

get_textFunction · 0.90
parse_ide_typeFunction · 0.85
get_ide_display_nameFunction · 0.85
print_infoFunction · 0.85
print_errorFunction · 0.85
print_warningFunction · 0.85
print_successFunction · 0.85

Tested by

no test coverage detected