How slill/windows-grep works
Windows Grep is a Windows-focused, grep-style command-line file search utility. The documented workflow starts with a command and search term, selects and filters files, searches content, names, or hashes, optionally modifies or deletes matches, then prints results and summaries. It also documents an optional interactive shell and searches inside common document formats. The graph captures these capabilities, but source excerpts do not show the full entry-point dispatch or document-extraction implementation; uncertain links are omitted or marked unverified.
Main entry points: grep_service.rs Search engine · native_service.rs Shell actions · grep_result.rs Search results · windows_utils.rs File selection
Components 20
Command entry
- CLI command
WindowsGrep/src/main.rs - Search flags
WindowsGrep/src/enums/command_flag.rs - Flag parsing
WindowsGrep/src/utils/command_flag_utils.rs
Search workflow
- Search engine
WindowsGrep/src/services/grep_service.rs - Hash algorithms
WindowsGrep/src/enums/hash_type.rs - Search results
WindowsGrep/src/models/grep_result.rs - Search metrics
WindowsGrep/src/models/search_metrics.rs - Result scopes
WindowsGrep/src/enums/result_scope.rs
File operations
- File selection
WindowsGrep/src/utils/windows_utils.rs - File records
WindowsGrep/src/models/file_item.rs - Size units
WindowsGrep/src/enums/file_size_type.rs - File helpers
WindowsGrep/src/utils/file_utils.rs
Results and output
- Colored items
WindowsGrep/src/models/console_item.rs - Console output
WindowsGrep/src/services/console_service.rs
Interactive shell
- Shell commands
WindowsGrep/src/enums/native_command_type.rs - Shell request
WindowsGrep/src/models/native_command.rs - Shell parsing
WindowsGrep/src/utils/windows_grep_utils.rs - Shell actions
WindowsGrep/src/services/native_service.rs - Console helpers
WindowsGrep/src/utils/console_utils.rs
Other components
- CLI user
Connections 24
- CLI user → CLI command: runs command
README.md - CLI command → Search engine: starts search
- Search engine → Flag parsing: parses options
WindowsGrep/src/services/grep_service.rs - Flag parsing → Search flags: uses definitions
WindowsGrep/src/utils/command_flag_utils.rs - Search engine → File selection: collects files
WindowsGrep/src/services/grep_service.rs - File selection → File records: returns entries
WindowsGrep/src/utils/windows_utils.rs - Search engine → File helpers: uses helpers
WindowsGrep/src/services/grep_service.rs - Search engine → Hash algorithms: selects hash
WindowsGrep/src/services/grep_service.rs - File selection → Size units: formats sizes
WindowsGrep/src/utils/windows_utils.rs - Search engine → Search results: builds matches
WindowsGrep/src/services/grep_service.rs - Search engine → Search metrics: tracks counts
WindowsGrep/src/services/grep_service.rs - Search results → Result scopes: formats by scope
WindowsGrep/src/models/grep_result.rs - Search results → File records: stores source file
WindowsGrep/src/models/grep_result.rs - Search results → Colored items: formats output
WindowsGrep/src/models/grep_result.rs - Search engine → Console output: writes results
WindowsGrep/src/services/grep_service.rs - Console output → Colored items: prints items
WindowsGrep/src/services/console_service.rs - CLI command → Shell parsing: offers shell
- Shell parsing → Shell commands: recognizes commands
WindowsGrep/src/utils/windows_grep_utils.rs - Shell parsing → Shell request: builds requests
WindowsGrep/src/utils/windows_grep_utils.rs - Shell actions → Shell request: handles request
WindowsGrep/src/services/native_service.rs - Shell actions → Shell commands: dispatches actions
WindowsGrep/src/services/native_service.rs - Shell actions → File selection: lists files
WindowsGrep/src/services/native_service.rs - Shell actions → Console output: writes output
WindowsGrep/src/services/native_service.rs - Shell actions → Console helpers: clears console
WindowsGrep/src/services/native_service.rs