Skip to content

feat: product commands: list, view, create, edit and delete, with -i - #47

Merged
alukach merged 1 commit into
mainfrom
feat/product-commands-v2
Oct 15, 2026
Merged

alukach merged 1 commit into
mainfrom
feat/product-commands-v2

Conversation

@alukach

@alukach alukach commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Stacked on #45 (foundation). Supersedes #24's product commands.

What

source-coop product list | view | create | edit | delete over /api/v1/products, following AGENTS.md:

  • Input:
    • flags, then -F/--from-file (- for stdin), then prompts;
    • the API judges what's valid, and rejected fields are asked again;
    • create offers the accounts you can create products in, with steps you can go back through and a review before sending.
  • -i:
    • a full-screen picker that loads more as you scroll;
    • / filters, and Enter searches all public products on the server;
    • opening a product shows its details, where e edits and d deletes.
  • Output:
    • view and list show chosen fields: mirrors with the primary marked, tags, featured and disabled, and dates with relative times;
    • --format table gives rows instead;
    • lists stream through a pager on a terminal;
    • --json on every subcommand.
  • Safety:
    • sign-in is checked before the first question;
    • answers are kept as a draft when a send fails;
    • Esc backs out of any prompt;
    • delete asks for the product name typed back.

It uses every module in the foundation, so the foundation's dead-code markers go.

Testing

  • cargo test and cargo test --features staging: 90 passed, including resource_commands_follow_the_cli_conventions and every_command_is_in_the_readme.
  • cargo clippy --all-targets -- -D warnings (both builds): clean.

🤖 Generated with Claude Code

@claude

claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Claude finished @alukach's task in 29s —— View job


I'll analyze this and get back to you.


💰 Estimated review cost: $0.23 · 0m29s · 6 turns

@alukach
alukach force-pushed the feat/product-commands-v2 branch 3 times, most recently from 42d67e9 to 357b755 Compare October 14, 2026 21:24
Base automatically changed from feat/cli-foundation to main October 14, 2026 21:32
@alukach
alukach marked this pull request as ready for review October 15, 2026 04:13
source-coop product list | view | create | edit | delete over
/api/v1/products, following AGENTS.md:
- flags, -F/--from-file (- for stdin) and prompts, in that precedence;
  the API judges, and rejected fields are asked again
- create picks from the accounts you can create in, with steps you can
  go back through and a review before sending
- -i: a full-screen picker that pages itself, searches public products
  on the server, and opens a product's screen to edit or delete it
- view and list show chosen fields (mirrors, tags, featured, dates with
  relative times), --format table, a pager on a terminal
- --json on every command; sign-in checked before prompting; drafts kept
  when a send fails; Esc backs out of any prompt

Built on the shared foundation, so its dead-code allowances go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alukach
alukach force-pushed the feat/product-commands-v2 branch from 357b755 to 1d42342 Compare October 15, 2026 04:15
@alukach
alukach merged commit 528d627 into main Oct 15, 2026
10 checks passed
@alukach
alukach deleted the feat/product-commands-v2 branch October 15, 2026 05:45
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.

1 participant