[fix](cli): fill in the model name and path in kt model remove/edit warnings (#2220)

This commit is contained in:
Mohammad Hijjawi
2026-10-12 05:44:24 +01:00
committed by GitHub
parent 5d048e5165
commit 44fbb184d5
2 changed files with 47 additions and 5 deletions
+5 -5
View File
@@ -1550,8 +1550,8 @@ def edit_model(
elif choice == "3":
# Delete model
console.print()
console.print(f"[bold yellow]{t('model_edit_delete_warning')}[/bold yellow]")
console.print(f" {t('model_edit_delete_note')}")
console.print(f"[bold yellow]{t('model_edit_delete_warning', name=model.name)}[/bold yellow]")
console.print(f" {t('model_edit_delete_note', path=model.path)}")
console.print()
if Confirm.ask(t("model_edit_delete_confirm", name=model.name), default=False):
@@ -1936,8 +1936,8 @@ def remove_model(
raise typer.Exit(1)
console.print()
console.print(f"[bold yellow]{t('model_remove_warning')}[/bold yellow]")
console.print(f" {t('model_remove_note')}")
console.print(f"[bold yellow]{t('model_remove_warning', name=name)}[/bold yellow]")
console.print(f" {t('model_remove_note', path=model.path)}")
console.print(f" [dim]Path: {model.path}[/dim]")
console.print()
@@ -1983,7 +1983,7 @@ def remove_model(
print_success(t("model_removed", name=name))
console.print()
else:
print_error(t("model_remove_failed", name=name))
print_error(t("model_remove_failed", error=name))
raise typer.Exit(1)