feat(board): implement board list (PR 1/5) #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/yt-client-and-board-list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
First of five PRs porting the remaining stubbed subcommands to real implementations. This one lays the foundation and ships
board listend-to-end.src/yt/module with aClientwrapper around reqwest (Bearer auth,Accept: application/json, 10s timeout, non-2xx mapped toClientError::Statuswith the response body).AgileBoardmodel insrc/yt/models.rs.board listcallsGET /api/agiles?fields=id,name, renders acomfy-table(BOARD NAME | ID), and supports--jsonfor pretty-printed array output.auth login.The client and model surface stay deliberately minimal: helpers, POST support, and additional models are added in follow-up PRs only as each command needs them.
Sequence
This is PR 1 of 5:
board list.sprint list,sprint current,list(with query builder).issue inspect,issue sprint show.issue comment,issue set-state,issue set-estimation,issue sprint set(reintroduces POST helpers + extended models).work add,work check,issue daily-sync.Each PR ships its own unit tests; no PR depends on later work.
Verification
cargo fmt --checkclean.cargo clippy --all-targets -- -D warningsclean.cargo test --all-targets: 22 tests pass (8 new, all existing still pass).youtrack-cli board list --helpshows the new--jsonflag with help text.Test plan
youtrack-cli board listagainst a real YouTrack instance: confirms the table renders board name + ID.youtrack-cli board list --jsonproduces a parseable JSON array (jqit).~/.config/youtrack-cli/config.yaml,youtrack-cli board listexits with a clear "runauth login" hint.board listagainst a real YT API client