scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
3.98k stars 295 forks source link

how to save the code to generate the flowchart #51

Closed addy1997 closed 2 years ago

addy1997 commented 2 years ago

Hello,

I mean to ask what extension like .py or .cpp is used to save the code?

Thanks

scottrogowski commented 2 years ago

Not sure I follow. It is saved in an intermediate form as a .gv (graphviz) file and then usually it is saved as an image of some kind. It depends on the command line arguments you pass. There is more info if you run

code2flow --help
scottrogowski commented 2 years ago

If I might offer a different interpretation, if you are trying to process a python file, you just do:

code2flow path/to/python/file.py

If for some reason you have a different extension, you can also do something like

code2flow path/to/python/directory/or/file --language py
addy1997 commented 2 years ago

If I might offer a different interpretation, if you are trying to process a python file, you just do:

code2flow path/to/python/file.py

If for some reason you have a different extension, you can also do something like

code2flow path/to/python/directory/or/file --language py

Thanks @scottrogowski. That's what I was asking.