MCPcopy Index your code
hub / github.com/idank/explainshell / commandunknowns

Function commandunknowns

explainshell/web/static/js/es.js:475–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473
474// handle unknowns in #command
475function commandunknowns() {
476 document.querySelectorAll('#command span.unknown').forEach((el) => {
477 // add tooltips
478 if (el.classList.contains('simplecommandstart')) {
479 el.title = 'This man page seems to be missing...';
480
481 // only add the link to the missing man page issue if we haven't
482 // had any expansions in this group (since those might already contain
483 // links)
484 // if (!el.classList.contains('hasexpansion')) {
485 // const link = document.createElement('a');
486 // link.textContent = el.textContent;
487 // link.href = 'https://github.com/idank/explainshell/issues/1';
488 // el.replaceChildren(link);
489 // }
490 } else el.title = 'No matching help text found for this argument';
491 });
492}
493
494function affixon() {
495 return document

Callers 1

initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected