lockthard-cli 0.1.3__tar.gz → 0.1.4__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.3 → lockthard_cli-0.1.4}/PKG-INFO +1 -1
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/__init__.py +1 -1
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/formatters.py +24 -10
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/PKG-INFO +1 -1
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/pyproject.toml +1 -1
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/README.md +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/auth.py +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/cli.py +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/client.py +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli/config.py +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/SOURCES.txt +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/dependency_links.txt +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/entry_points.txt +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/requires.txt +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/lockthard_cli.egg-info/top_level.txt +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/setup.cfg +0 -0
- {lockthard_cli-0.1.3 → lockthard_cli-0.1.4}/tests/test_cli.py +0 -0
|
@@ -127,22 +127,36 @@ def print_tablet_content(tablet_data: Dict[str, Any], as_json: bool = False):
|
|
|
127
127
|
console.print(Panel(f"[bold white]{title}[/bold white]\n[dim]{tablet_data.get('description', '')}[/dim]", border_style="cyan"))
|
|
128
128
|
|
|
129
129
|
if items:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
table.add_column("Descripción", style="white")
|
|
133
|
-
table.add_column("Enlace", style="blue")
|
|
134
|
-
|
|
130
|
+
# Group items by section
|
|
131
|
+
sections: Dict[str, List[Dict[str, Any]]] = {}
|
|
135
132
|
for item in items:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
sec_name = item.get("section") or "General"
|
|
134
|
+
sections.setdefault(sec_name, []).append(item)
|
|
135
|
+
|
|
136
|
+
for sec_title, sec_items in sections.items():
|
|
137
|
+
section_header = f"📁 {sec_title}" if sec_title != "General" else f"🛠️ Herramientas ({len(sec_items)})"
|
|
138
|
+
table = Table(title=section_header, show_header=True, header_style="bold yellow")
|
|
139
|
+
table.add_column("Nombre", style="bold green")
|
|
140
|
+
table.add_column("Descripción", style="white")
|
|
141
|
+
table.add_column("Enlace", style="blue")
|
|
142
|
+
|
|
143
|
+
for item in sec_items:
|
|
144
|
+
desc = item.get("description") or item.get("desc") or ""
|
|
145
|
+
url = item.get("url") or item.get("href") or item.get("repo") or "-"
|
|
146
|
+
table.add_row(str(item.get("name") or "-"), desc, str(url))
|
|
147
|
+
console.print(table)
|
|
140
148
|
else:
|
|
141
149
|
console.print("[yellow]No hay herramientas registradas en esta tablet.[/yellow]")
|
|
142
150
|
else:
|
|
143
151
|
print(f"=== {title} ===")
|
|
152
|
+
sections: Dict[str, List[Dict[str, Any]]] = {}
|
|
144
153
|
for item in items:
|
|
145
|
-
|
|
154
|
+
sec_name = item.get("section") or "General"
|
|
155
|
+
sections.setdefault(sec_name, []).append(item)
|
|
156
|
+
for sec_title, sec_items in sections.items():
|
|
157
|
+
print(f"\n--- {sec_title} ---")
|
|
158
|
+
for item in sec_items:
|
|
159
|
+
print(f"- {item.get('name')}: {item.get('url')}")
|
|
146
160
|
|
|
147
161
|
|
|
148
162
|
def print_tool_details(tool: Dict[str, Any], as_json: bool = False):
|
|
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
|