Skip to content

chore: contacts & events commands should use cobra for flag constraints#73

Merged
notnmeyer merged 2 commits into
mainfrom
chore/contacts-events-use-cobra-for-flag-constraints
May 8, 2026
Merged

chore: contacts & events commands should use cobra for flag constraints#73
notnmeyer merged 2 commits into
mainfrom
chore/contacts-events-use-cobra-for-flag-constraints

Conversation

@notnmeyer
Copy link
Copy Markdown
Member

@notnmeyer notnmeyer commented May 8, 2026

i homerolled some flag constraints for events and contacts originally. found out later that cobra has functions that do this. this also make it easier to programmatically inspect a command (like for producing agent help output).

for example,

➜ task -- events send blah

   ERROR

  At least one of the flags in the group [email user-id] is required.

@notnmeyer notnmeyer self-assigned this May 8, 2026
@notnmeyer notnmeyer changed the title chore: contacts events use cobra for flag constraints chore: contacts & events commands should use cobra for flag constraints May 8, 2026
@notnmeyer notnmeyer merged commit 721878a into main May 8, 2026
2 checks passed
@notnmeyer notnmeyer deleted the chore/contacts-events-use-cobra-for-flag-constraints branch May 8, 2026 18:29
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