RipgrepConfigSchema top-level property

ConfigSchema<RipgrepConfig> RipgrepConfigSchema
final

Ripgrep configuration schema

Implementation

final ConfigSchema<RipgrepConfig> RipgrepConfigSchema = _notNull((
  value,
  issues,
  path,
) {
  final obj = _object(value, path, issues);
  if (obj == null) return null;
  final command = _string(obj['command'], [...path, 'command'], issues);
  final args = _has(obj, 'args')
      ? _stringList(obj['args'], [...path, 'args'], issues)
      : null;
  final argv0 = _has(obj, 'argv0')
      ? _string(obj['argv0'], [...path, 'argv0'], issues)
      : null;
  return command == null
      ? null
      : RipgrepConfig(command: command, args: args, argv0: argv0);
});