Source Discover

SourceDiscover is one of the modules provided in Codelinks. It discovers the source files from the given directory. It provides users CLI and API to discover the source files.

Usage Examples

Basic Configuration:

[source_discover]
src_dir = "./src"
comment_type = "cpp"

Advanced Filtering:

[source_discover]
src_dir = "./"
include = []
exclude = ["src/legacy/**", "**/*_test.cpp"]
gitignore = true
follow_links = false
comment_type = "cpp"

Python Project:

[source_discover]
src_dir = "./my_package"
include = []
exclude = ["tests/**", "setup.py"]
comment_type = "python"