Skip to content

Add enum values to positional args and exclude --as-member from no-auth schemas#310

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
feat/input-schema-arg-enums
Jun 29, 2026
Merged

Add enum values to positional args and exclude --as-member from no-auth schemas#310
AndreyVMarkelov merged 1 commit into
masterfrom
feat/input-schema-arg-enums

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Propagates enum values to positional arguments (e.g. login token-type now reports personal, team-access, team-manage) in both the manifest args array and the generated input_schema
  • Excludes --as-member from input_schema on commands that skip authentication (login, logout, completion, root), since the flag has no effect there
  • Updates manifest schema to include enum_values as a required field on the arg definition

Test plan

  • go test ./... passes
  • golangci-lint run ./... clean
  • gofmt -s -l . clean
  • Tests verify login arg enum values in both args and input_schema
  • Tests verify help, root, login, and completion exclude as_member from input_schema
  • Tests verify verbose is retained (relevant global flag)
  • Generated docs rebuilt and in sync

…th schemas

Propagates enum values to positional arguments (e.g. login token-type)
in both the manifest args array and the generated input_schema. Excludes
--as-member from input_schema on commands that skip authentication, since
the flag has no effect there.
@AndreyVMarkelov AndreyVMarkelov merged commit 33a55fd into master Jun 29, 2026
8 checks passed
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