Toc v2 – Generate a table of contents from the comments of a file
github.com
github.com
`toc` is a command line utility that generates the table of contents of a file from a special kind of comments.
Think it as a `tree` for the contents of a file, instead of a directory.
With version 2, I rewrote it in python for consistency and maintainability, and I added the possibility to embed the output in the original file