cli/print: print tracks and areas
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user