MCPcopy Create free account
hub / github.com/idank/explainshell / constructor

Method constructor

explainshell/web/static/js/es.js:189–196  ·  view source on GitHub ↗
(clazz, options, mid)

Source from the content-addressed store, hash-verified

187// a class that represents a group of eslink
188class ESLinkGroup {
189 constructor(clazz, options, mid) {
190 const color = assignedcolors[clazz];
191 this.links = options.map(
192 (option) => new ESLink(clazz, option, mid, color),
193 );
194 this.options = this.links.map((l) => l.option);
195 this.help = this.links.map((l) => l.help);
196 }
197}
198
199// this class represents a link (visualized by a line) between a span (option)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected