Hide the Fillet command from the command palette (#4550)

* Add the ability to hide a command based on its availability status

* Hide the Fillet command from the command bar unless in dev mode
This commit is contained in:
Frank Noirot
2024-11-22 16:32:28 -05:00
committed by GitHub
parent 6f169ab297
commit b415349af6
3 changed files with 9 additions and 1 deletions

View File

@ -96,6 +96,7 @@ export type CommandConfig<
'name' | 'groupId' | 'onSubmit' | 'onCancel' | 'args' | 'needsReview'
> & {
needsReview?: true
status?: 'active' | 'development' | 'inactive'
args?: {
[ArgName in keyof CommandSchema]: CommandArgumentConfig<
CommandSchema[ArgName],