codetoprompt is a Go package that loads files from a specified directory and outputs their contents in a format that can be used as a prompt for chat-GPT questions. The package can either display the output in the terminal or write it to a file.
The package accepts flags to specify the directory to load files from, the file to output the results to (if any), and which directories or files to exclude. Additionally, the package can optionally include or exclude blank lines in the output.
Alternatively, you can download the binary for your platform from the artifacts built by the CI pipeline. The latest version can be found here
The above command will load all files from the current directory, excluding the files specified in the exclude flag, and output the results to the file specified in the out flag.