How gvanem/envtool works
EnvTool is a Windows-oriented command-line search and diagnostics tool. Users choose one or more modes and a file pattern; the tool searches environment-variable paths or specialized indexes, can check path consistency and filter or inspect matches, then reports findings. The README also documents EveryThing database searches, Python and Lua paths, CMake and package-config paths, and Vcpkg package queries. Internal support includes directory enumeration, caching, matching, and reporting. The graph follows documented mode behavior; source excerpts are partial, so uncertain internal call relationships are omitted.
Main entry points: envtool.c EnvTool CLI · dirlist.c Directory listing · vcpkg.c Vcpkg packages · envtool_py.c Python paths
Components 20
Command entry
- EnvTool CLI
src/envtool.c
Environment searches
- PATH search
src/envtool.c - Include and library
src/envtool.c - Manual pages
src/envtool.c - CMake modules
src/cmake.c - Package config
src/pkg-config.c - Lua paths
src/lua.c - Python paths
src/envtool_py.c
Indexes and packages
- EveryThing search
src/Everything.c - EveryThing v3
src/Everything3.c - Remote ETP
src/Everything_ETP.c - Vcpkg packages
src/vcpkg.c
Diagnostics
- Path checks
src/check.c - App Paths registry
src/envtool.c
Search runtime
- Directory listing
src/dirlist.c - Pattern matching
src/regex.c - Search cache
src/cache.c - Results reporting
src/report.c - Remote credentials
src/auth.c
Other components
- CLI user
Connections 22
- CLI user → EnvTool CLI: runs
- EnvTool CLI → PATH search: selects mode
src/envtool.c - EnvTool CLI → Include and library: selects mode
src/envtool.c - EnvTool CLI → Manual pages: selects mode
src/envtool.c - EnvTool CLI → CMake modules: selects mode
- EnvTool CLI → Package config: selects mode
- EnvTool CLI → Lua paths: selects mode
- EnvTool CLI → Python paths: selects mode
- EnvTool CLI → EveryThing search: selects mode
- EnvTool CLI → Remote ETP: remote search
- EnvTool CLI → Vcpkg packages: selects mode
src/envtool.c - EnvTool CLI → Path checks: checks paths
- EnvTool CLI → App Paths registry: checks registry
src/envtool.c - EnvTool CLI → Results reporting: reports findings
src/envtool.c - EveryThing search → EveryThing v3: uses SDK
- PATH search → Directory listing: searches directories
- Include and library → Directory listing: searches directories
- Python paths → Directory listing: searches paths
src/envtool_py.c - Vcpkg packages → Search cache: reads cache
src/vcpkg.c - Vcpkg packages → Directory listing: lists directories
src/vcpkg.c - EnvTool CLI → Pattern matching: supports regex
- Remote ETP → Remote credentials: uses credentials
src/Everything_ETP.c