https://github.com/timnekk/filemerger
CLI tool for merging files considering dependencies
https://github.com/timnekk/filemerger
file-merge filemerge
Last synced: 9 months ago
JSON representation
CLI tool for merging files considering dependencies
- Host: GitHub
- URL: https://github.com/timnekk/filemerger
- Owner: TimNekk
- Archived: true
- Created: 2022-12-15T18:27:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T14:02:06.000Z (over 3 years ago)
- Last Synced: 2025-03-23T13:33:37.414Z (over 1 year ago)
- Topics: file-merge, filemerge
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
File Merger
CLI tool for merging files considering dependencies
### Restrictions
In order for this tool to find the dependencies, the files must contain a directive with the following format:
require ‘relative/path/from/root’
In case of a circular dependency, the tool will print an error and exit.
In case of a missing dependency, the tool will print a warning and continue.
### Usage
1. Run the application.
2. Enter the path to the root directory. _(Can be relative or absolute)_
3. Enter the path to the output file. _(Can be relative or absolute)_
### Example
To test the tool, you can use `example/` folder. It should work without any errors and warnings.
1. Run the application.
2. Type `example`
3. Press enter.
4. Type `output.txt`
5. Press enter.
The tool will print a mering order and create a file `output.txt` in the root directory with the merged content.