You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
881 B
Markdown
25 lines
881 B
Markdown
---
|
|
# vibed-mlgv
|
|
title: Implement display formatting
|
|
status: todo
|
|
type: task
|
|
created_at: 2026-04-11T22:35:25Z
|
|
updated_at: 2026-04-11T22:35:25Z
|
|
parent: vibed-f05l
|
|
blocked_by:
|
|
- vibed-mn9a
|
|
- vibed-54u4
|
|
---
|
|
|
|
Implement output formatting functions and the main display dispatcher.
|
|
|
|
## Todo
|
|
- [ ] `fn format_duration(seconds: u32) -> String`: return "N/A" for 0, else "Xh YYm"
|
|
- [ ] `fn print_game(game: &GameResult, prefix: Option<&str>)`: print name then 3 time lines with fixed-width labels
|
|
- [ ] `fn display(resp: SearchResponse, args: &Args)`: check for zero results, dispatch to --json / --all / default paths
|
|
- [ ] Default path: show only `data[0]`
|
|
- [ ] `--all` path: numbered list of all results
|
|
- [ ] `--json` path: `serde_json::to_string_pretty` of `data[0]` (or full vec with --all)
|
|
- [ ] Zero results: print "No results found." and return
|
|
- [ ] `cargo check` passes
|