Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.04 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.04 KB

File Merger

CLI tool for merging files considering dependencies

Logo

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.