catc
(conCATenate by Configuration) is a file concatenation tool that allows you to concatenate files based on a configuration file.
First, install catc
:
pip install catc
Then, create a catc.json
file in the root of your project,
and specify the files you want to concatenate:
{
"files": [
"src/file.txt",
"src/lib/**/*.txt"
],
"output": "dist/merged.txt",
"separator": "\n"
}
Finally, run catc
to concatenate the files:
catc <directory/to/catc.json>
TODO: description
Any contribution is welcome! Check out CONTRIBUTING.md and CODE_OF_CONDUCT.md for more information on how to get started.
catc
is licensed under a MIT License.