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

Function clean_db_command

augment_tools_core/cli.py:66–81  ·  view source on GitHub ↗

Cleans the specified IDE's state database by removing entries matching the keyword.

(ide: str, keyword: str)

Source from the content-addressed store, hash-verified

64@click.option('--keyword', default='augment', show_default=True,
65 help=get_text("cli.keyword_option_help"))
66def 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,

Callers

nothing calls this directly

Calls 6

get_textFunction · 0.90
parse_ide_typeFunction · 0.85
get_ide_display_nameFunction · 0.85
print_infoFunction · 0.85
clean_ide_databaseFunction · 0.85
print_errorFunction · 0.85

Tested by

no test coverage detected