Skip to content

API_Parsed

Shae edited this page Oct 26, 2022 · 1 revision

API-Layer: Parsed

This contains subcommands, which are just parsed versions of normal commands:

RipGrep (rg)

Currently this only supports searching in files and not in stdin.

Usage:

rg {flags} <regex> (paths) 

Flags:
  -i, --ignore-case
  -s, --case-sensitive
  --hidden - include hidden files and directories
  -v, --invert-match
  -h, --help

Parameters:
  regex <String>
  (optional) paths <List>

Returns:

List:
	Record:
		'file' (string)
		'line' (int)
		'column' (int)
		'content' (string): the content of the matched line