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

Class ESLinkGroup

explainshell/web/static/js/es.js:188–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
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)
200// in .command that needs to be connected to a corresponding <pre> in .help

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected