MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / execPreset

Method execPreset

daemon/src/entity/instance/instance.ts:491–496  ·  view source on GitHub ↗
(action: IPresetCommand, p?: any)

Source from the content-addressed store, hash-verified

489
490 // execute the preset command action
491 async execPreset(action: IPresetCommand, p?: any) {
492 if (this.presetCommandManager) {
493 return await this.presetCommandManager.execPreset(action, p);
494 }
495 throw new Error(`Preset Manager does not exist`);
496 }
497
498 setPreset(action: IPresetCommand, cmd: InstanceCommand) {
499 this.presetCommandManager.setPreset(action, cmd);

Callers 13

stoppedMethod · 0.95
actionMethod · 0.45
#stopInstanceMethod · 0.45
autoStartMethod · 0.45
exitInstanceMethod · 0.45
execFunction · 0.45
startMethod · 0.45
startMethod · 0.45
execMethod · 0.45
execMethod · 0.45
createProcessMethod · 0.45
Instance_router.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected