From c7a12582731ea312e26c39ab09ab287f689ac404 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sat, 18 Jan 2025 20:34:12 +0100 Subject: [PATCH] Integrated the InitGitInFolderTask task into the CreateCommand command in the executable target. --- Executable/Sources/Commands/CreateCommand.swift | 2 ++ .../Cases/Internal/Enumerations/FolderTests.swift | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Executable/Sources/Commands/CreateCommand.swift b/Executable/Sources/Commands/CreateCommand.swift index 1a5899e..9f35af7 100644 --- a/Executable/Sources/Commands/CreateCommand.swift +++ b/Executable/Sources/Commands/CreateCommand.swift @@ -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) } } diff --git a/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift b/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift index 1caba0d..052c6d1 100644 --- a/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift +++ b/Test/Sources/Cases/Internal/Enumerations/FolderTests.swift @@ -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/" ] } }