withCommand
Method
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) => Promise<ExecuteCommandResult>, commandOptions?: CommandOptions): IResourceParameters
name string displayName string executeCommand (arg: ExecuteCommandContext) => Promise<ExecuteCommandResult> commandOptions CommandOptions optional Returns
IResource Applies to
This method applies to the following types: