How sivaswami/shell-flow works
Shell-Flow is a small command-line prototype that reads a shell script, classifies its lines, and emits a Graphviz visualization. Both Python files contain standalone implementations of this workflow; the graph shows their shared design without implying that one calls the other. The sampled code creates command nodes but its edge-building logic is commented out, so no control-flow edges between shell commands are shown.
Main entry points: ShellFlow.py Command classifier · ShellFlow_new.py Alternate implementation
Components 11
Script Analysis
- Script loader
ShellFlow.py - Syntax normalizer
ShellFlow.py - Command classifier
ShellFlow.py - Command models
ShellFlow.py - Command queue
ShellFlow.py - Alternate implementation
ShellFlow_new.py
Graph Output
- Graph builder
ShellFlow.py - Graphviz renderer
- siva.gv graph
Other components
- Script author
- Shell script
Connections 11
- Script author → Shell script: provides
README.md - Shell script → Script loader: reads
ShellFlow.py - Script loader → Syntax normalizer: passes lines
ShellFlow.py - Syntax normalizer → Command classifier: normalizes
ShellFlow.py - Command classifier → Command models: creates
ShellFlow.py - Command classifier → Command queue: enqueues
ShellFlow.py - Command queue → Command models: dispatches
ShellFlow.py - Command models → Graph builder: adds nodes
ShellFlow.py - Graph builder → Graphviz renderer: renders
ShellFlow.py - Graphviz renderer → siva.gv graph: writes
- Shell script → Alternate implementation: reads
ShellFlow_new.py