Skip to content

Extend @CustomCmd decorator functionality - #2

Merged
stirante merged 2 commits into
Bedrock-OSS:mainfrom
r4isen1920:main
Oct 7, 2025
Merged

stirante merged 2 commits into
Bedrock-OSS:mainfrom
r4isen1920:main

Conversation

@r4isen1920

Copy link
Copy Markdown
Contributor

77b2e0f

  • This commit implements automatic registration of Enum-type parameter sets for custom commands by detecting enum types in mandatoryParameters and optionalParameters and invoking registerEnum as needed.
  • Registered enum names are automatically de-duplicated.
  • Updated test suite for custom command enum registration and de-duplication.
  • Updated types to accomodate for stylish's custom command semantics.
  • Updated documentation for CustomCmd.

8820072

  • Add references to new @CustomCmd decorator

This commit implements automatic registration of enum parameter sets for custom commands by detecting enum types in mandatory and optional parameters and invoking registerEnum as needed.
@r4isen1920

Copy link
Copy Markdown
Contributor Author

I forgot to do this in #1 xD mb 🙏

@stirante
stirante merged commit df9f637 into Bedrock-OSS:main Oct 7, 2025
1 check 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.

2 participants