Commit 7b09898
committed
fix(drive_service): drop redundant print; --json now emits clean JSON
`list_folder_with_paths` printed `📁 Listing folder: <path>` to stdout
unconditionally. In normal text-mode that's fine (the CLI's
`list_path` function also echoes the same header before showing the
table), but in `--json` mode it corrupted the output — JSON consumers
got a non-JSON header line followed by the actual payload.
Caught by CrispSorter's `InternxtDrive::list_dir`, which calls
`cli.py list-path --json` and serde_json-parses stdout. The
duplicated print broke that parse on every call.
Drop the print from `services/drive.py` — the human-readable header
in cli.py's text-mode codepath (line 1293) is unchanged, so end users
see exactly the same TUI output.1 parent e9db765 commit 7b09898
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
| |||
0 commit comments