MCPcopy Index your code
hub / github.com/yargs/yargs / ValidationInstance

Interface ValidationInstance

lib/validation.ts:477–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475
476/** Instance of the validation module. */
477export interface ValidationInstance {
478 conflicting(argv: Arguments): void;
479 conflicts(
480 key: string | Dictionary<string | string[]>,
481 value?: string | string[]
482 ): void;
483 freeze(): void;
484 getConflicting(): Dictionary<(string | undefined)[]>;
485 getImplied(): Dictionary<KeyOrPos[]>;
486 implications(argv: Arguments): void;
487 implies(
488 key: string | Dictionary<KeyOrPos | KeyOrPos[]>,
489 value?: KeyOrPos | KeyOrPos[]
490 ): void;
491 isValidAndSomeAliasIsNotNew(
492 key: string,
493 aliases: DetailedArguments['aliases']
494 ): boolean;
495 limitedChoices(argv: Arguments): void;
496 nonOptionCount(argv: Arguments): void;
497 positionalCount(required: number, observed: number): void;
498 recommendCommands(cmd: string, potentialCommands: string[]): void;
499 requiredArguments(
500 argv: Arguments,
501 demandedOptions: Dictionary<string | undefined>
502 ): void;
503 reset(localLookup: Dictionary): ValidationInstance;
504 unfreeze(): void;
505 unknownArguments(
506 argv: Arguments,
507 aliases: DetailedArguments['aliases'],
508 positionalMap: Dictionary,
509 isDefaultCommand: boolean,
510 checkPositionals?: boolean
511 ): void;
512 unknownCommands(argv: Arguments): boolean;
513}
514
515interface FrozenValidationInstance {
516 implied: Dictionary<KeyOrPos[]>;

Callers 27

[kRunValidation]Method · 0.80
conflictsMethod · 0.65
validationFunction · 0.65
validation.mjsFile · 0.65
command.mjsFile · 0.65
yargs.mjsFile · 0.65
yargs.mjsFile · 0.80
yargs.mjsFile · 0.80
[kRunValidation]Method · 0.80
implies_hash.mjsFile · 0.65
implies.mjsFile · 0.65
complex.mjsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…