lockthard-cli 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/PKG-INFO +1 -1
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/__init__.py +1 -1
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/formatters.py +5 -3
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/PKG-INFO +1 -1
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/pyproject.toml +1 -1
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/README.md +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/auth.py +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/cli.py +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/client.py +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli/config.py +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/SOURCES.txt +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/dependency_links.txt +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/entry_points.txt +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/requires.txt +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/lockthard_cli.egg-info/top_level.txt +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/setup.cfg +0 -0
- {lockthard_cli-0.1.1 → lockthard_cli-0.1.2}/tests/test_cli.py +0 -0
|
@@ -65,16 +65,18 @@ def print_tablets_list(tablets: List[Dict[str, Any]], as_json: bool = False):
|
|
|
65
65
|
table.add_column("Herramientas", justify="right", style="green")
|
|
66
66
|
|
|
67
67
|
for t in tablets:
|
|
68
|
+
count = t.get("toolCount") or t.get("tool_count") or t.get("count") or len(t.get("tools") or t.get("items") or [])
|
|
68
69
|
table.add_row(
|
|
69
70
|
str(t.get("id") or t.get("slug") or "-"),
|
|
70
71
|
str(t.get("title") or t.get("name") or "-"),
|
|
71
72
|
str(t.get("category") or "General"),
|
|
72
|
-
str(
|
|
73
|
+
str(count)
|
|
73
74
|
)
|
|
74
75
|
console.print(table)
|
|
75
76
|
else:
|
|
76
77
|
for t in tablets:
|
|
77
|
-
|
|
78
|
+
count = t.get("toolCount") or t.get("tool_count") or t.get("count") or len(t.get("tools") or t.get("items") or [])
|
|
79
|
+
print(f"[{t.get('id')}] {t.get('title')} ({count} herramientas)")
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
def print_search_results(query: str, results: List[Dict[str, Any]], as_json: bool = False):
|
|
@@ -116,7 +118,7 @@ def print_tablet_content(tablet_data: Dict[str, Any], as_json: bool = False):
|
|
|
116
118
|
return
|
|
117
119
|
|
|
118
120
|
title = tablet_data.get("title") or tablet_data.get("name") or "Tablet"
|
|
119
|
-
items = tablet_data.get("items") or []
|
|
121
|
+
items = tablet_data.get("tools") or tablet_data.get("items") or []
|
|
120
122
|
|
|
121
123
|
if HAS_RICH and console:
|
|
122
124
|
console.print(Panel(f"[bold white]{title}[/bold white]\n[dim]{tablet_data.get('description', '')}[/dim]", border_style="cyan"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|