This PR contains the work done to create the root folder of a new project when executing the _colibri_ executable. In addition, some other work has been done: * added the `ArgumentParser` package dependency to the package; * implemented the `FileService` service in the _library_ target; * implemented the `CreateRootFolderTask` task in the _library_ target; * removed some unnecessary comments and boilerplate code; Reviewed-on: #2 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
19 lines
583 B
Swift
19 lines
583 B
Swift
import Foundation
|
|
|
|
@testable import ColibriLibrary
|
|
|
|
extension URL {
|
|
|
|
// MARK: Constants
|
|
|
|
static let someCurrentFolder = URL(at: "/some/current/folder")
|
|
static let someDotFolder = URL(at: ".")
|
|
static let someExistingFolder = URL(at: "/some/existing/folder")
|
|
static let someExistingFile = URL(at: "/some/existing/file")
|
|
static let someNewFolder = URL(at: "/some/new/folder")
|
|
static let someNewFile = URL(at: "/some/new/file")
|
|
static let someRandomURL = URL(string: "http://some.random.url")!
|
|
static let someTildeFolder = URL(at: "~")
|
|
|
|
}
|