Skip to content

Commit c042690

Browse files
committed
2 parents 6f14c0f + 0f51023 commit c042690

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,35 @@ Code Aggregator is an application that allows you to select a root folder and ag
1010
- Include or exclude specific files and folders using checkboxes.
1111
- Save the aggregated text to a specified location.
1212
- Option to open the aggregated file after the operation completes.
13+
- Command line support for running the aggregator without the GUI.
1314

1415
## How to Use
1516

17+
### Graphical User Interface
18+
1619
1. Click the 'Select Folder' button to choose the root folder for aggregation.
1720
2. Use the checkboxes to include or exclude specific files and folders. By default, all folders and files are included.
1821
3. Click 'Start Operation' to begin the aggregation process. You will be prompted to specify the location and name of the output file.
1922
4. Note: It is recommended to exclude folders like .git, .vs, or other dependency folders to avoid including unnecessary files.
2023

24+
### Command Line Interface
25+
26+
- `?` - Show command line syntax and tips.
27+
- `source_folder` - Run the aggregator on this source folder.
28+
- `-o:"New_Output_Folders\New_Output_Filename.ext"` - Change the output file for this run only.
29+
- `-oc:"New_Output_Folders\New_Output_Filename.ext"` - Change the output file and update the JSON settings.
30+
- `-a:"Folder\Folder_or_File_to_Add[.ext]"` - Add this folder or file for this run only.
31+
- `-ac:"Folder\Folder_or_File_to_Add[.ext]"` - Add this folder or file and update the JSON settings.
32+
- `-q` - Quiet mode (no output from the program, don't show windows).
33+
34+
#### Error Codes
35+
36+
- `0` - Worked perfectly.
37+
- `1` - Folder not found (when trying to add a new folder).
38+
- `2` - File not found (when trying to add a new file).
39+
- `3` - Error outputting to the output file.
40+
- `4` - Source folder not found.
41+
2142
## Installation
2243

2344
### Prerequisites
@@ -55,6 +76,74 @@ Code Aggregator is an application that allows you to select a root folder and ag
5576

5677
3. After installation, you can find the application in the Start Menu under "Code Aggregator."
5778

79+
## Version 1.0.0 - Initial Release
80+
81+
### Overview
82+
83+
This is the initial release of the Code Aggregator application, designed to help users aggregate text files from selected folders into a single text file. This is particularly useful for consolidating code files or other text-based files from a project directory.
84+
85+
### Features
86+
87+
- **Folder Selection**:
88+
- Users can select a root folder to aggregate files from.
89+
- A tree view is provided to include or exclude specific files and folders.
90+
- All selected folders and files are remembered for future use.
91+
92+
- **File Aggregation**:
93+
- Aggregates all text files from the selected folders and subfolders into a single text file.
94+
- Ensures that only text files are included in the aggregation.
95+
96+
- **Settings Management**:
97+
- Saves the selected folders and file inclusion settings in a JSON file.
98+
- Detects new folders and indicates them to the user for inclusion.
99+
100+
- **User Interface**:
101+
- Instructions are provided on the main form to guide the user.
102+
- Buttons for selecting folders and starting the aggregation process.
103+
- Progress form to show the progress of the aggregation process.
104+
- Option to open the generated file after the aggregation is complete.
105+
106+
- **Command Line Support**:
107+
- Supports command line arguments to run the aggregator without the graphical user interface.
108+
- Options to specify output file, add folders, and run in quiet mode.
109+
110+
### Command Line Options
111+
112+
- `?` - Show command line syntax and tips.
113+
- `source_folder` - Run the aggregator on this source folder.
114+
- `-o:"New_Output_Folders\New_Output_Filename.ext"` - Change the output file for this run only.
115+
- `-oc:"New_Output_Folders\New_Output_Filename.ext"` - Change the output file and update the JSON settings.
116+
- `-a:"Folder\Folder_or_File_to_Add[.ext]"` - Add this folder or file for this run only.
117+
- `-ac:"Folder\Folder_or_File_to_Add[.ext]"` - Add this folder or file and update the JSON settings.
118+
- `-q` - Quiet mode (no output from the program, don't show windows).
119+
120+
### Error Codes
121+
122+
- `0` - Worked perfectly.
123+
- `1` - Folder not found (when trying to add a new folder).
124+
- `2` - File not found (when trying to add a new file).
125+
- `3` - Error outputting to the output file.
126+
- `4` - Source folder not found.
127+
128+
### Usage
129+
130+
#### Graphical User Interface
131+
132+
1. Open the application.
133+
2. Click the 'Select Folder' button to choose the root folder for aggregation.
134+
3. Use the checkboxes in the tree view to include or exclude specific files and folders.
135+
4. Click 'Start Operation' to begin the aggregation process.
136+
5. After completion, choose whether to open the generated file.
137+
138+
#### Command Line Interface
139+
140+
1. Run the application from the command line with the appropriate arguments as described above.
141+
142+
### Known Issues
143+
144+
- Initial scanning of large directories may take some time.
145+
- Antivirus software may flag the executable. Consider signing the code with a recognized certificate.
146+
58147
## Contributing
59148
60149
Contributions are welcome! Please open an issue or submit a pull request for any changes.

0 commit comments

Comments
 (0)