withCommand
Method
interface ContainerResource { // ... omitted for brevity withCommand( name: string, displayName: string, executeCommand: callback, 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
IResourceApplies to
This method applies to the following types: