mdify-cli 3.2.0__tar.gz → 3.2.1__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.
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/PKG-INFO +1 -1
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/__init__.py +1 -1
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/cli.py +15 -8
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/PKG-INFO +1 -1
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/pyproject.toml +1 -1
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/LICENSE +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/README.md +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/assets/mdify.png +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/__main__.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/container.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/docling_client.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/formatting.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/__init__.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/client.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/models.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/remote_container.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/transfer.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/SOURCES.txt +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/dependency_links.txt +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/entry_points.txt +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/requires.txt +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/top_level.txt +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/setup.cfg +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_cli.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_container.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_docling_client.py +0 -0
- {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_ssh_client.py +0 -0
|
@@ -1175,7 +1175,8 @@ def main_async_remote(args) -> int:
|
|
|
1175
1175
|
input_path = Path(args.input)
|
|
1176
1176
|
if not input_path.exists():
|
|
1177
1177
|
await ssh_client.disconnect()
|
|
1178
|
-
|
|
1178
|
+
color = Colorizer(sys.stderr)
|
|
1179
|
+
print(f"{color.error('✗ Error:')} Input file or directory not found: {args.input}", file=sys.stderr)
|
|
1179
1180
|
return 1
|
|
1180
1181
|
|
|
1181
1182
|
# Store resolved path as base for relative path calculations
|
|
@@ -1184,8 +1185,9 @@ def main_async_remote(args) -> int:
|
|
|
1184
1185
|
|
|
1185
1186
|
if not files_to_convert:
|
|
1186
1187
|
await ssh_client.disconnect()
|
|
1187
|
-
|
|
1188
|
-
print(f"
|
|
1188
|
+
color = Colorizer(sys.stderr)
|
|
1189
|
+
print(f"{color.error('✗ Error:')} No supported files found in {args.input}", file=sys.stderr)
|
|
1190
|
+
print(f" {color.dim_white(f'Supported formats: {', '.join(sorted(SUPPORTED_EXTENSIONS))}')} ", file=sys.stderr)
|
|
1189
1191
|
return 1
|
|
1190
1192
|
|
|
1191
1193
|
if not args.quiet:
|
|
@@ -1381,7 +1383,8 @@ def main_async_remote(args) -> int:
|
|
|
1381
1383
|
break
|
|
1382
1384
|
|
|
1383
1385
|
if not conversion_success:
|
|
1384
|
-
|
|
1386
|
+
color_error = Colorizer(sys.stderr)
|
|
1387
|
+
print(f" {color_error.error('✗ Failed:')} Conversion failed after {conversion_attempt} attempt(s)", file=sys.stderr)
|
|
1385
1388
|
failed += 1
|
|
1386
1389
|
break
|
|
1387
1390
|
|
|
@@ -1493,7 +1496,8 @@ def main_async_remote(args) -> int:
|
|
|
1493
1496
|
await ssh_client.connect()
|
|
1494
1497
|
continue
|
|
1495
1498
|
|
|
1496
|
-
|
|
1499
|
+
color_err = Colorizer(sys.stderr)
|
|
1500
|
+
print(f" {color_err.error('✗ Failed:')} {str(e)}", file=sys.stderr)
|
|
1497
1501
|
if DEBUG:
|
|
1498
1502
|
import traceback
|
|
1499
1503
|
traceback.print_exc(file=sys.stderr)
|
|
@@ -1739,18 +1743,21 @@ def main() -> int:
|
|
|
1739
1743
|
|
|
1740
1744
|
# Validate input
|
|
1741
1745
|
if not input_path.exists():
|
|
1742
|
-
|
|
1746
|
+
color = Colorizer(sys.stderr)
|
|
1747
|
+
print(f"{color.error('✗ Error:')} Input path does not exist: {input_path}", file=sys.stderr)
|
|
1743
1748
|
return 1
|
|
1744
1749
|
|
|
1745
1750
|
# Get files to convert
|
|
1746
1751
|
try:
|
|
1747
1752
|
files_to_convert = get_files_to_convert(input_path, args.glob, args.recursive)
|
|
1748
1753
|
except Exception as e:
|
|
1749
|
-
|
|
1754
|
+
color = Colorizer(sys.stderr)
|
|
1755
|
+
print(f"{color.error('✗ Error:')} {e}", file=sys.stderr)
|
|
1750
1756
|
return 1
|
|
1751
1757
|
|
|
1752
1758
|
if not files_to_convert:
|
|
1753
|
-
|
|
1759
|
+
color = Colorizer(sys.stderr)
|
|
1760
|
+
print(f"{color.warning('⚠ Warning:')} No files found to convert in: {input_path}", file=sys.stderr)
|
|
1754
1761
|
return 1
|
|
1755
1762
|
|
|
1756
1763
|
total_files = len(files_to_convert)
|
|
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
|
|
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
|