IResource.withCommand
Method
interface IResource { // ... omitted for brevity withCommand(name: string, displayName: string, executeCommand: (arg: ExecuteCommandContext) => Promise<ExecuteCommandResult>, commandOptions?: CommandOptions): IResource;}Signature
method
withCommandbuilderAdds a resource command
withCommand(name: string, displayName: string, executeCommand: (arg: ExecuteCommandContext) => Promise<ExecuteCommandResult>, commandOptions?: CommandOptions): IResourceParameters
namestringdisplayNamestringexecuteCommand(arg: ExecuteCommandContext) => Promise<ExecuteCommandResult>commandOptionsCommandOptionsoptionalReturns
IResourceDefined on
This method is defined on the following type: