Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/napoln/commands/list_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pathlib import Path

import typer
from napoln import output
from napoln.core import manifest
from napoln.core.home import NAPOLN_DIR, get_napoln_home
Expand Down Expand Up @@ -95,8 +96,6 @@ def _print_skills(
show_paths: bool = False,
) -> None:
"""Print skills from a manifest under a section label."""
import typer

if not mf.skills:
return

Expand Down Expand Up @@ -227,8 +226,6 @@ def run_list(

if project_mf and project_mf.skills:
if has_any:
import typer

typer.echo() # blank line between sections
cwd_short = _abbreviate_path(str(Path.cwd()), str(Path.home()))
project_label = f"Project ({cwd_short})"
Expand Down
5 changes: 5 additions & 0 deletions src/napoln/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def print_json(data: Any) -> None:
typer.echo(json.dumps(data, indent=2, default=str))


def styled(message: str, **kwargs: Any) -> str:
"""Return a styled string (pass through to typer.style)."""
return typer.style(message, **kwargs)


def install_summary(
skills: list[str],
agent_names: list[str],
Expand Down
Loading