srgn 0.14.2

A grep-like tool which understands source code syntax and allows for manipulation in addition to search
Documentation
---
source: tests/cli.rs
expression: "CommandSnap\n{\n    args: args.into(), stdin:\n    stdin.map(|s|\n    s.split_inclusive('\\n').map(ToOwned::to_owned).collect_vec()), stdout:\n    stdout.split_inclusive('\\n').map(ToOwned::to_owned).collect_vec(),\n    exit_code,\n}"
info:
  stderr: []
---
args:
  - "--threads"
  - "1"
  - "--python"
  - def
  - "--python"
  - strings
  - A
stdin:
  - "# A comment\n"
  - "x = \"A string\"\n"
  - "def A(): return \"A string in a func\"\n"
  - "class A: pass"
stdout:
  - "(stdin):3:17-18:def A(): return \"A string in a func\"\n"
exit_code: 0