uday-rana / codeshift

A command-line tool that translates source code files into a chosen programming language.
MIT License
5 stars 4 forks source link

Output file overwritten when passed multiple input files #12

Closed mayank-Pareek closed 1 week ago

mayank-Pareek commented 1 week ago

Description:

The output file is overwritten if multiple files are passed as arguments to the program, the output file contains response for the last processed file.

Steps to Reproduce:

  1. Run following command:
    npm start run python ./examples/main.cpp ./examples/index.js -- -o test.py
  2. Output file only contains response for index.js, response for main.cpp is overwritten in the output file.

Expected Ouput:

The data received from processing the first file should not be lost. The data should be appended instead of being overwritten.