Integrated the InitGitInFolderTask task into the CreateCommand command in the executable target.

This commit is contained in:
Javier Cicchelli 2025-01-18 20:34:12 +01:00
parent 1fcbc38253
commit c7a1258273
2 changed files with 8 additions and 6 deletions

View File

@ -23,6 +23,7 @@ extension Colibri {
let copyFiles = CopyFilesTask(fileService: fileService)
let createFolders = CreateFoldersTask(fileService: fileService)
let createRootFolder = CreateRootFolderTask(fileService: fileService)
let initGitInFolder = InitGitInFolderTask()
let rootFolder = try await createRootFolder(
name: options.name,
@ -31,6 +32,7 @@ extension Colibri {
try await createFolders(at: rootFolder)
try await copyFiles(to: rootFolder)
try await initGitInFolder(at: rootFolder)
}
}

View File

@ -24,12 +24,12 @@ private extension FolderTests {
enum Expectation {
static let paths: [String] = [
"",
"App/Sources",
"Library/Sources/Public",
"Library/Sources/Internal",
"Test/Sources/Cases/Public",
"Test/Sources/Cases/Internal",
"Test/Sources/Helpers"
"App/Sources/",
"Library/Sources/Public/",
"Library/Sources/Internal/",
"Test/Sources/Cases/Public/",
"Test/Sources/Cases/Internal/",
"Test/Sources/Helpers/"
]
}
}