fix: resolve CI linting and type errors
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / type-check (push) Has been cancelled

This commit is contained in:
2026-02-04 12:58:02 +00:00
parent 9906685345
commit d38570a6c9

View File

@@ -1,7 +1,7 @@
import sys """Prompt management commands."""
import click import click
from pathlib import Path
from datetime import datetime
from promptforge.core.prompt import Prompt, PromptVariable, VariableType from promptforge.core.prompt import Prompt, PromptVariable, VariableType
from promptforge.core.template import TemplateEngine from promptforge.core.template import TemplateEngine
from promptforge.core.git_manager import GitManager from promptforge.core.git_manager import GitManager
@@ -109,7 +109,10 @@ def show(ctx, name: str):
click.echo(f"Provider: {prompt.provider}") click.echo(f"Provider: {prompt.provider}")
if prompt.tags: if prompt.tags:
click.echo(f"Tags: {', '.join(prompt.tags)}") click.echo(f"Tags: {', '.join(prompt.tags)}")
click.echo(f"\n--- Content ---") click.echo(f"Created: {prompt.created_at.isoformat()}")
click.echo(f"Updated: {prompt.updated_at.isoformat()}")
click.echo("")
click.echo("--- Content ---")
click.echo(prompt.content) click.echo(prompt.content)
@@ -135,5 +138,5 @@ def delete(ctx, name: str, yes: bool):
filepath.unlink() filepath.unlink()
click.echo(f"Deleted prompt: {name}") click.echo(f"Deleted prompt: {name}")
else: else:
click.echo(f"Prompt file not found", err=True) click.echo("Prompt file not found", err=True)
raise click.Abort() raise click.Abort()