Skip to content

Commit

Permalink
Fix adding the gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Aug 5, 2024
1 parent d71e3f2 commit 0261a2a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import ballerina/log;
import ballerina/time;

// Define the file extensions that are considered as template files
public type TemplateFileExt "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties";
public type TemplateFileExt "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties"|"gitignore";

public function main(string path, string moduleName, string repoName, string moduleVersion, string balVersion, string connectorName) returns error? {
log:printInfo("Generating connector template with the following metadata:");
Expand Down Expand Up @@ -73,6 +73,7 @@ function processFile(string filePath, map<string> placeholders) returns error? {
}

check io:fileWriteString(filePath, content);
log:printInfo("Added file: " + filePath);
}

function getExtension(string filePath) returns string {
Expand Down

0 comments on commit 0261a2a

Please sign in to comment.