Skip to content

Comments

fix(forms): use Flags().Changed() for update, reject --file + --title conflict#131

Merged
omriariav merged 1 commit intomainfrom
fix/forms-review-fixes
Feb 19, 2026
Merged

fix(forms): use Flags().Changed() for update, reject --file + --title conflict#131
omriariav merged 1 commit intomainfrom
fix/forms-review-fixes

Conversation

@omriariav
Copy link
Owner

Summary

Post-merge review fixes for PR #124 (forms parity). Addresses issues found by Codex:

  • Flags().Changed(): Use cmd.Flags().Changed() instead of empty-string checks to detect whether --title and --description were provided. This allows clearing fields by passing empty values (e.g., --description "").
  • Conflict guard: Add explicit error when --file is combined with --title or --description. Previously --file silently took precedence and the inline flags were ignored.

Test plan

  • go vet ./... clean
  • go test ./... all pass
  • Manual test: gws forms update <id> --title "New Title" --description "" clears description

🤖 Generated with Claude Code

… conflict

- Use cmd.Flags().Changed() instead of empty-string checks to detect
  whether --title and --description were provided. This allows setting
  empty values to clear fields (e.g., --description "").
- Add explicit conflict guard: --file cannot be combined with --title
  or --description. Previously --file silently took precedence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omriariav omriariav merged commit c1f7c91 into main Feb 19, 2026
1 check passed
@omriariav omriariav deleted the fix/forms-review-fixes branch February 19, 2026 21:52
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