cmd-call-graph
cmd-call-graph copied to clipboard
A simple tool to generate a call graph for calls within Windows CMD (batch) files.
Documentation: https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/pypi?view=vsts&tabs=yaml - [ ] define what triggers publishing to PyPI - [ ] define how to handle version numbers - [ ] define how to handle the changelog -...
Example: when a batch file contains a line like this: ``` if foo==%var% (foo & goto :foo) ELSE (bar & goto :bar) ``` cmd-call-graph considers `foo)` and `bar)` as labels.
We could extend the tool to follow calls to external batch scripts, and produce a larger call graph including a set of scripts. There is already some primitive logic to...
A node can be both terminating and non-terminating, depending on how it's invoked. If it's reached via `goto` or `nested` from a node that would have been terminating, it's terminating...
The tool can identify some flaws in batch files, for example goto / call to non-existing labels. Implement a `--lint` option that only outputs potential problems with a given script.
It might be useful to know how many terminating statements exists in a given terminating node.