From 2618e434e40e109eaab6a0693313c7e0de7324a3 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 27 Jan 2026 16:52:43 +0900 Subject: [PATCH] cli/print: print tracks and areas --- src/cli/print.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/print.py b/src/cli/print.py index 7af7244..6f23dfb 100644 --- a/src/cli/print.py +++ b/src/cli/print.py @@ -25,9 +25,9 @@ def format_marker(marker: Marker) -> str: if isinstance(marker, Point): return format_point_marker(marker) elif isinstance(marker, Track): - raise NotImplementedError("Track markers are not supported") + return f"{marker.name} - {marker.points[0]} <--[{len(marker.points)}]--> {marker.points[-1]}" elif isinstance(marker, Area): - raise NotImplementedError("Area markers are not supported") + return f"{marker.name} ({len(marker.points)} points)" else: raise ValueError(f"Unknown marker type: {marker}")