From df556f83abfa7a42f807d572eec3030bec2af357 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 13 Jan 2025 00:36:56 +0100 Subject: [PATCH] Added the CreateFoldersTasks task into the "run()" function for the CreateCommand command in the app target. --- Sources/Executable/Commands/CreateCommand.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/Executable/Commands/CreateCommand.swift b/Sources/Executable/Commands/CreateCommand.swift index 556fcb7..12d62a4 100644 --- a/Sources/Executable/Commands/CreateCommand.swift +++ b/Sources/Executable/Commands/CreateCommand.swift @@ -12,7 +12,7 @@ extension Colibri { helpNames: .shortAndLong, aliases: ["create"] ) - + @OptionGroup var options: Options // MARK: Functions @@ -20,13 +20,14 @@ extension Colibri { mutating func run() async throws { let fileService = FileService() let createRootFolder = CreateRootFolderTask(fileService: fileService) + let createFolders = CreateFoldersTask(fileService: fileService) let rootFolder = try await createRootFolder( name: options.name, at: options.locationURL ) - - print(rootFolder) + + try await createFolders(at: rootFolder) } }