CommandOptions
Defined in: namespaces.ts:19
Options for command registration.
Properties
Section titled “Properties”title:
string
Defined in: namespaces.ts:21
Human-readable title for the command.
optionalicon?:SFSymbolName
Defined in: namespaces.ts:23
SF Symbol name for the command icon.
shortcut?
Section titled “shortcut?”
optionalshortcut?:string
Defined in: namespaces.ts:25
Keyboard shortcut string (e.g., “cmd+shift+t”).
condition?
Section titled “condition?”
optionalcondition?:string
Defined in: namespaces.ts:27
Condition when the command is available (e.g., “isDirectory”).
handler
Section titled “handler”handler: () =>
void|Promise<void>
Defined in: namespaces.ts:29
The handler function called when the command is executed.
Returns
Section titled “Returns”void | Promise<void>