Commentator is a fucking fast source code comments finder CLI and Rust SDK (crate).
work in progress.
Motivation
Existing source code comments extractors (see References) forcomments extracting are quite slow, not always accurate (don't find all comments) or doesn't provide SDK. This tool fixes all of this.
Usage
This library could be used as CLI or from code.
To build CLI from sources (you need Rust and Cargo installed):
# clone repo
# build with cargo
# move binary to your $PATH
Or download from release pages: https://github.com/g4s8/commentator/releases/tag/0.1.0
CLI usage
commentator require file name argument and supports these options:
--format- output format: eitherplainorjson--lang- language comment specification, one of:c,java,go,cpp- for C-like comment syntaxrust- Rust comments syntaxbash- for Bash, Python and Rubyhtml- for HTML, XML
--trim- trim comment symbols and whitespaces, align to the first sentence indent.
Example:
SDK usage
TODO: SDK usage