withCommand
Function
interface ContainerResource { // ... omitted for brevity withCommand( name: string, displayName: string, executeCommand: callback, 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 Applies to
This function is an extension method on the following types: