Skip to content

refactor: product create and edit share their field flags - #49

Merged
alukach merged 1 commit into
mainfrom
refactor/product-field-args
Oct 15, 2026
Merged

alukach merged 1 commit into
mainfrom
refactor/product-field-args

Conversation

@alukach

@alukach alukach commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Stacked on #47.

product create and product edit declared -t/--title, -d/--description, --visibility and -F/--from-file identically. They now live in one Fields struct in src/product.rs, flattened into CreateArgs and EditArgs. The request body, prompting order and everything else are unchanged.

Behaviour unchanged. I diffed --help for both commands before and after. Flags, short options and value names are the same. Only two things differ:

  • --title and --description now have help text ("The product's title" / "The product's description").
  • Options are in a different order: --data-connection (create) and --disable/--enable (edit) now come after --from-file.

Checks: cargo fmt, cargo clippy --all-targets -- -D warnings, cargo test and cargo test --features staging all pass, including resource_commands_follow_the_cli_conventions.

🤖 Generated with Claude Code

@claude

claude Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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


I'll analyze this and get back to you.


💰 Estimated review cost: $0.09 · 0m08s · 3 turns

Base automatically changed from feat/product-commands-v2 to main October 15, 2026 05:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alukach
alukach force-pushed the refactor/product-field-args branch from 5c1540d to 226b116 Compare October 15, 2026 05:52
@alukach
alukach merged commit ec643f1 into main Oct 15, 2026
10 checks passed
@alukach
alukach deleted the refactor/product-field-args branch October 15, 2026 05:54
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