New IO interface to scan for Gentoo eclass vars

Uses the `portageq` command to scan for repositories, which in turn are
scanned for eclasses, which are then scanned for eclass variables.

The variables are scanned using a heuristic which looks for

    "# @ECLASS_VARIABLE: "

at the start of each line, which means only properly documented
variables will be found.

Signed-off-by: hololeap <hololeap@users.noreply.github.com>
This commit is contained in:
hololeap 2023-08-04 17:19:05 -06:00
parent e3d8483e49
commit 08ae7ef836
No known key found for this signature in database
GPG key ID: 06B97EDD7A3D1E83
2 changed files with 159 additions and 0 deletions

View file

@ -97,6 +97,7 @@ library
ShellCheck.Regex
other-modules:
Paths_ShellCheck
ShellCheck.PortageVariables
ShellCheck.PortageAutoInternalVariables
default-language: Haskell98