Skip to content

Commit

Permalink
Add few more missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Oct 5, 2024
1 parent 3cd3274 commit 730c95a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import ballerina/log;
import ballerina/time;

// Define file extensions to be accepted as template files
public type TemplateFileExt "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties"|"gitignore"|"txt"|"jar";
public type TemplateFileType "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties"|"gitignore"|"txt"|"jar"|"sh"|"bat"|"LICENSE"|"CODEOWNERS";

# This function generates a connector template with the given metadata.
#
Expand Down Expand Up @@ -66,7 +66,7 @@ function processDirectory(string dir, map<string> placeholders) returns error? {

function processFile(string filePath, map<string> placeholders) returns error? {
string ext = getExtension(filePath);
if ext !is TemplateFileExt {
if ext !is TemplateFileType {
log:printInfo("Skipping file: " + filePath);
return;
}
Expand Down

0 comments on commit 730c95a

Please sign in to comment.