Skip to content

fix stale CLI README example and clippy dead-code CI failure - #173

Merged
ooloth merged 2 commits into
mainfrom
claude/issue-57
May 25, 2026
Merged

ooloth merged 2 commits into
mainfrom
claude/issue-57

Conversation

@ooloth

@ooloth ooloth commented May 23, 2026 •

Copy link
Copy Markdown
Owner

✅ What

  • Fixes two small issues on the claude/issue-57 branch: a stale CLI README example and a clippy dead-code warning that fails CI
  • Updates the Commands enum example in ui/cli/README.md to match the actual enum — replaces the nonexistent Sync { slug: Option<String> } variant with Fetch
  • Gates WorktreeSpec::CurrentDir behind #[cfg(feature = "private")] to match its only call site, which is already private-gated

🤔 Why

  • The CLI README is the primary reference for adding new commands — a stale example showing a variant that doesn't exist will mislead contributors
  • CurrentDir is only used by the MediaBlocked investigation (private feature), so without the gate clippy reports dead code and CI fails with -D warnings

👩‍🔬 How to validate

  • Open ui/cli/README.md and read the Commands enum example — expect to see Fetch and Status variants with no struct fields
  • Search the README for Sync and slug — expect zero matches
  • Open ui/cli/src/main.rs lines 15–19 — expect the example to match
  • Check that CI passes (the clippy dead-code error should be gone)

🔖 Related links

Closes #57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CLI documentation example so contributors see the correct Commands enum variants for the ui/cli crate.

Changes:

  • Replaces the stale Sync { slug: Option<String> } example variant with the correct Fetch variant in ui/cli/README.md.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ooloth ooloth changed the title ui/cli: fix stale Commands enum example in README fix stale CLI README example and clippy dead-code CI failure May 25, 2026
ooloth added 2 commits May 24, 2026 20:37
#57

The example showed a Sync variant with a slug parameter that never
existed in the codebase. The actual Commands enum has Fetch and Status.
Replace the stale example with the correct variants to match main.rs.
WorktreeSpec::CurrentDir is only used by the MediaBlocked
investigation, which is behind #[cfg(feature = "private")].
Without the same gate on the variant itself, clippy reports
dead_code when building without the private feature, which
fails CI (-D warnings).
Copilot AI review requested due to automatic review settings May 25, 2026 00:38
@ooloth
ooloth force-pushed the claude/issue-57 branch from 65ee86f to ad0a209 Compare May 25, 2026 00:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@ooloth
ooloth merged commit 2802a62 into main May 25, 2026
2 checks passed
@ooloth
ooloth deleted the claude/issue-57 branch May 25, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui/cli/README.md: code example shows nonexistent Sync subcommand

2 participants