From 02299f1cc29091fbe5744170c203728fe9204c0e Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 16 Jan 2025 01:46:42 +0100 Subject: [PATCH] Integrated the CopyFilesTask task into the "run()" function for the CreateCommand command in the executable target. --- Sources/Executable/CLI/Commands/CreateCommand.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Executable/CLI/Commands/CreateCommand.swift b/Sources/Executable/CLI/Commands/CreateCommand.swift index f15cca4..1a5899e 100644 --- a/Sources/Executable/CLI/Commands/CreateCommand.swift +++ b/Sources/Executable/CLI/Commands/CreateCommand.swift @@ -20,6 +20,7 @@ extension Colibri { mutating func run() async throws { let fileService = FileService() + let copyFiles = CopyFilesTask(fileService: fileService) let createFolders = CreateFoldersTask(fileService: fileService) let createRootFolder = CreateRootFolderTask(fileService: fileService) @@ -29,6 +30,7 @@ extension Colibri { ) try await createFolders(at: rootFolder) + try await copyFiles(to: rootFolder) } }