fix: resolve CI linting and type errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
"""Prompt management commands."""
|
||||
|
||||
import click
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
|
||||
from promptforge.core.prompt import Prompt, PromptVariable, VariableType
|
||||
from promptforge.core.template import TemplateEngine
|
||||
from promptforge.core.git_manager import GitManager
|
||||
@@ -109,7 +109,10 @@ def show(ctx, name: str):
|
||||
click.echo(f"Provider: {prompt.provider}")
|
||||
if 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)
|
||||
|
||||
|
||||
@@ -135,5 +138,5 @@ def delete(ctx, name: str, yes: bool):
|
||||
filepath.unlink()
|
||||
click.echo(f"Deleted prompt: {name}")
|
||||
else:
|
||||
click.echo(f"Prompt file not found", err=True)
|
||||
raise click.Abort()
|
||||
click.echo("Prompt file not found", err=True)
|
||||
raise click.Abort()
|
||||
|
||||
Reference in New Issue
Block a user