Added the CreateFoldersTasks task into the "run()" function for the CreateCommand command in the app target.
This commit is contained in:
parent
d065425c69
commit
df556f83ab
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user