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/" ] } }