Skip to content

workouts list --exercise <no-match> markdown emits empty stdout instead of 'No workouts found.' #37

@DTTerastar

Description

@DTTerastar

Command

liftoff-export workouts list --exercise nonexistent --since 1m

Actual

Exits 0 with completely empty stdout.

Expected

Per liftoff-export prime: "An empty result is success — markdown prints "No workouts found.", JSON prints '[]'."

JSON output is correct ([]); only markdown is silent. workouts stats --exercise nonexistent --since 1m correctly prints "No workouts found." — workouts list should match.

This is the same class of bug as #24 but on a different code path (exercise filter rather than empty time-window). Likely both share a root cause: the markdown formatter early-returns instead of emitting the empty-state line.

Severity

major

Metadata

Metadata

Assignees

Labels

area:format--format markdown/json/csv and codec behavior.kind:bugObserved behavior diverges from documented behavior.priority:mediumReproducible bug or gap with a workaround, or a well-scoped enhancement clearly in charter.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions