feat(housekeeping): add global command deck search
This commit is contained in:
1 parent
2e95a106e0
commit
bcb0ca977f
18 files changed
+1353
-23
No files matched your search
@@ -105,6 +105,13 @@ export function getHousekeepingCommand(
|
||||
return commands.get(id);
|
||||
}
|
||||
|
||||
export function listHousekeepingCommands(): readonly HousekeepingCommand<
|
||||
unknown,
|
||||
unknown
|
||||
>[] {
|
||||
return Object.freeze([...commands.values()]);
|
||||
}
|
||||
|
||||
export function isHousekeepingCommandId(value: unknown): value is string {
|
||||
return isNormalizedIdentifier(value) && commandIdPattern.test(value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user