Skip to content

CLI tool for merging files considering dependencies

Notifications You must be signed in to change notification settings

TimNekk/FileMerger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.