A simple tool to consolidate multiple files into a single .txt
file. Perfect for feeding your files to AI tools without any fuss.
You can install the sourcecollector
CLI tool in two ways:
go install github.com/hitesh22rana/sourcecollector@latest
This will download and install the sourcecollector
binary in your $GOPATH/bin
directory.
To run sourcecollector
locally, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/hitesh22rana/sourcecollector.git
-
Build and run the application using
make
:make run input=/path/to/input/directory output=/path/to/output/file.txt fast=true
Replace
/path/to/input/directory
and/path/to/output/file.txt
with the actual paths you want to use for input and output, respectively. Setfast=true
orfast=false
based on your preference.Alternatively, you can build and run the application manually:
go build -o bin/sourcecollector cmd/cli/main.go ./bin/sourcecollector --input /path/to/input/directory --output /path/to/output/file.txt --fast
After installing or building the sourcecollector
CLI tool, you can run it with the following command:
sourcecollector --input /path/to/input/directory --output /path/to/output/file.txt --fast
Replace /path/to/input/directory
and /path/to/output/file.txt
with the actual paths you want to use for input and output, respectively. Set --fast=true
or --fast=false
based on your preference.
--input
or-i
: (Required) Specifies the input directory path.--output
or-o
: (Optional) Specifies the output file path. Defaults tooutput.txt
.--fast
: (Optional) Enables faster result processing but may result in unordered data. Default isfalse
.--help
or-h
: Displays help forsourcecollector
.
Example usage:
sourcecollector --input /path/to/input --output /path/to/output.txt --fast
This project is licensed under the MIT License - see the LICENSE file for details.