Contrail Code Assistant
npm install contrail-code-assistant
git apply when changes are detected.
sh
npm install contrail-code-assistant --save
`
2. Update the scripts section in your package.json file:
`json
{
"scripts": {
"contrail": "node node_modules/contrail-code-assistant/dist/index.js"
// ...
}
}
`
Run the script
You can run the script using the following command:
`sh
npm run contrail
`
You can also provide custom values for the project folder path, patch file path, output file name, and output file path using environment variables or command line arguments:
1. Using environment variables:
`sh
PROJECT_FOLDER_PATH="./" PATCH_FILE_PATH=".contrail/contrail.patch" OUTPUT_FILE_NAME="contrail_prepared_response.txt" OUTPUT_FILE=".contrail/contrail_prepared_response.txt"
`
2. Using command line arguments:
` sh
npm run watch-and-apply -- --projectFolderPath="src" --patchFilePath=".contrail/contrail.patch" --outputFileName="contrail_prepared_response.txt" --outputFile=".contrail/contrail_prepared_response.txt"
``