IResource.withCommand
Method
interface IResource { // ... omitted for brevity withCommand(name: string, displayName: string, executeCommand: (arg: ExecuteCommandContext) => ExecuteCommandResult, commandOptions?: CommandOptions): IResource;}Signature
method
withCommand builder Adds a resource command
withCommand(name: string, displayName: string, executeCommand: (arg: ExecuteCommandContext) => ExecuteCommandResult, commandOptions?: CommandOptions): IResourceParameters
name string displayName string executeCommand (arg: ExecuteCommandContext) => ExecuteCommandResult commandOptions CommandOptions optional Returns
IResource Defined on
This method is defined on the following type: