yargs-factory.ts ×1
Frontier kind: Code frontier
unlabeled · c_00b702c35745
72 tests · 2291 LOC · 18 files · introduces 0 tests · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 3 lines · 1 files
Tests
0 tests
Contains — complete concept membership
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
yargs-factory.ts ×1 — Focused concept
Introduced files:
usage.mjs|title=usage tests with strict() option set should wrap whitespace in quotes if provided as an unknown argument|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests default command should display help output for nested default command on failure|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command help command displays command help appropriately|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1, validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command default commands strict allows default command aliases, when strict mode is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not load config twice when command executed|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strictCommands does not apply implicit strictCommands to inner commands|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command usage allows you to configure a default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and preserves falsy values|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and when using default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×2 — Ancestor (broader)
Introduced files:
validation.mjs|title=validation tests demand fails in strict mode with extra positionals for default command|occurrence=1 — Ancestor (broader)
Introduced tests:
levenshtein.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
usage.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command default commands allows default command to be set as alias|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command default commands allows $0 as an alias for a default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command default commands executes default command if defined positional arguments and only command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command does not coerce number from positional with leading "+"|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices for first positional|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) ignores positionals for the correct command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices for second positional after option|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash does not complete hidden options for command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh completes options for a command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices for nested command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
completion.mjs|title=Completion bash completes options for a command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) options choices should not be display with positional choices|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes options for the correct command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices for positional with prefix|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh completes options with line break|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests locale handles a missing locale|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command default commands executes default command if undefined positional arguments and only command|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests command executes top-level help if no handled command is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) avoids repeating options whose aliases are already included|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests locale allows a locale other than the default 'en' to be specified|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh does not apply validation when --get-yargs-completions is passed in|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) avoids repeating already included options|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) works if positional has no choices|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests command does not print command recommendation if help message will be shown|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash does not apply validation when --get-yargs-completions is passed in|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) returns arguments as completion suggestion, if next contains '-'|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice and a partial choice has been entered|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice and space has been entered|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option requires a choice and a partial choice has been entered|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option requires a choice and space has been entered|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) completes choices if previous option requires a choice|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strictOptions succeeds if option is known and command is unknown|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand fails in strict mode with invalid command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash avoids interruption from default command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh avoids interruption from default command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) works if command has no options|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion completion() allows custom completion to be combined with default completion, using filter|occurrence=1 — Ancestor (broader)
Introduced tests:
o filter|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strictCommands fails with error if command is unknown|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash avoids interruption from command recommendations|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh avoids interruption from command recommendations|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash returns a list of commands as completion suggestions|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh returns a list of commands as completion suggestions|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) avoids repeating already included commands|occurrence=1 — Ancestor (broader)
Introduced tests:
completion, --get-yargs-completions, …) does not complete hidden commands|occurrence=1, completion, --get-yargs-completions, …) does not include positional arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×2 — Ancestor (broader)
Introduced files:
middleware.mjs|title=middleware should run even if no command is matched|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests command does not recommend a similar command if no similar command exists|occurrence=1 — Ancestor (broader)
Introduced tests:
levenshtein.ts ×2 — Ancestor (broader)
Introduced files:
command.mjs|title=Command should not execute command if it is preceded by another positional argument|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
completion.ts ×2 — Ancestor (broader)
Introduced files:
completion.mjs|title=Completion completion() passes current arg for completion and the parsed arguments thus far to custom function|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×2 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×6 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×4 — Descendant (narrower)
Introduced files:
usage.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
usage.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×9 — Descendant (narrower)
Introduced files:
command.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
command.ts ×3 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×35 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×124 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.mjs|title=Argsert allows for any type if * is provided|occurrence=1, argsert.mjs|title=Argsert should ignore trailing undefined values|occurrence=1 — Descendant (narrower)
Introduced tests:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×2 — Descendant (narrower)
Introduced files:
argsert.ts ×3 — Descendant (narrower)
Introduced files:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
parse-command.ts ×3 — Descendant (narrower)
Introduced files:
process-argv.ts ×1 — Descendant (narrower)
Introduced files:
process-argv.ts ×3 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
apply-extends.ts ×4 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×4 — Descendant (narrower)
Introduced files:
obj-filter.ts ×2 — Descendant (narrower)
Introduced files:
argsert.ts ×3 — Descendant (narrower)
Introduced files:
common-types.ts ×4 — Descendant (narrower)
Introduced files:
process-argv.ts ×5 — Descendant (narrower)
Introduced files:
Introduced tests:
is-promise.ts ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
parse-command.ts ×2 — Descendant (narrower)
Introduced files:
yerror.ts ×2 — Descendant (narrower)
Introduced files:
is-promise.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 3 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
lib/yargs-factory.ts 3 introduced LOC · 1 range
Open complete file
2100
cmd !== this . # completionCommand
2101
) {
2103
>
break ;
2104
>
}
2105
}
2106
// recommend a command if recommendCommands() has