Added the CreateFoldersTasks task into the "run()" function for the CreateCommand command in the app target.

This commit is contained in:
Javier Cicchelli 2025-01-13 00:36:56 +01:00
parent d065425c69
commit df556f83ab

View File

@ -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)
}
}