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

Function grouptext

explainshell/web/static/js/es.js:1013–1018  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

1011 currentext = prevnext.querySelector('u');
1012
1013 const grouptext = (group) => {
1014 if (group.name === 'shell') return 'shell syntax';
1015 else if (group.name !== 'all')
1016 return group.commandselector[0].textContent;
1017 return 'all';
1018 };
1019
1020 nextext.textContent = ` explain ${grouptext(currentgroup.next)}`;
1021 prevtext.textContent = ` explain ${grouptext(currentgroup.prev)}`;

Callers 1

navigationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected