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