MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getChoiceById

Method getChoiceById

src/main.ts:514–522  ·  view source on GitHub ↗
(choiceId: string)

Source from the content-addressed store, hash-verified

512 }
513
514 public getChoiceById(choiceId: string): IChoice {
515 const choice = this.getChoice("id", choiceId);
516
517 if (!choice) {
518 throw new Error(`Choice ${choiceId} not found`);
519 }
520
521 return choice;
522 }
523
524 public getChoiceByName(choiceName: string): IChoice {
525 const choice = this.getChoice("name", choiceName);

Callers 4

addCommandForChoiceMethod · 0.95
getCommandDisplayNameFunction · 0.80
executeChoiceMethod · 0.80
resolveChoiceFromParamsFunction · 0.80

Calls 1

getChoiceMethod · 0.95

Tested by

no test coverage detected