[swift-build-dev] Project init command

Kostiantyn Koval konstantin.koval1 at gmail.com
Sat Dec 5 15:12:53 CST 2015


I like the idea. It would make people to follow the standard convention even more. And make it even simpler to create a Module.

Kostiantyn

> On 05 Dec 2015, at 22:01, Lander Brandt via swift-build-dev <swift-build-dev at swift.org> wrote:
> 
> On the Swift package manager page on swift.org <http://swift.org/> (https://swift.org/package-manager/#example-usage <https://swift.org/package-manager/#example-usage>) the requirements for creating a package/application are clearly outlined, but why not include a command in the swift tool for autogenerating the require? I did a quick look and didn’t see any existing discussion, so I apologize if this has already been discussed.
> 
> Example of the tool command: `swift init foo --type=(lib|app)`
> 
> Would create a new directory called “foo” with the following tree structure for a project of type app:
> 
> foo
> ├── Package.swift
> ├── Packages
> ├── README.md
> └── main.swift
> 
> And for project of type lib:
> 
> foo
> ├── Package.swift
> ├── README.md
> └── Sources
>     └── Foo.swift
> 
> In both cases Package.swift would contain something basic like:
> 
> import PackageDescription
> 
> let package = Package(
>     name: “Foo",
>     dependencies: [
>     ]
> )
> 
> _______________________________________________
> swift-build-dev mailing list
> swift-build-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20151205/edbd48ab/attachment.html>


More information about the swift-build-dev mailing list