Skip to main content

Module shell

Module shell 

Source
Expand description

Structural extraction for shell scripts.

Shell is where a repository keeps the things nothing else records. A CI job or a deploy script sources its helpers, invokes its siblings, and calls services by their address - so a script is often the only place an endpoint is written down at all. No other extractor here can see any of that, and most tools do not read shell at all.

Words are rebuilt from the token stream by byte adjacency rather than by splitting the line, because that is what keeps a # inside a string from ending the line and a quoted URL in one piece.

Functionsยง

extract
Extracts structural facts from one shell script.