Commit graph

2 commits

Author SHA1 Message Date
whitehai11
7a6769c2ec Extend grep with -r, -v, -l, -w and -x flags
Adds the following options to grep based on maintainer feedback:

- `-r` / `-R` — recursive search through directories
- `-v` — invert match, print non-matching lines
- `-l` — print only filenames that contain matches
- `-w` — match whole words only
- `-x` — match whole lines only

Multi-file output is automatically prefixed with the filename.
2026-05-13 15:05:27 +02:00
whitehai11
e313e9dfcc feat(cli): add grep command
Implements grep <text> <file> for searching text inside files.

Supported options:
  -n    Show line numbers
  -i    Case-insensitive search
  -c    Print match count only
  -h    Show help

Closes part of #22
2026-05-12 22:57:15 +02:00