<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On the Swift package manager page on&nbsp;<a href="http://swift.org" class="">swift.org</a>&nbsp;(<a href="https://swift.org/package-manager/#example-usage" class="">https://swift.org/package-manager/#example-usage</a>) 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.<div class=""><br class=""></div><div class="">Example of the tool command: `swift init foo --type=(lib|app)`</div><div class=""><br class=""></div><div class="">Would create a new directory called “foo” with the following tree structure for a project of type app:</div><div class=""><br class=""></div><div class=""><div class="">foo</div><div class="">├── Package.swift</div><div class="">├── Packages</div><div class="">├── README.md</div><div class="">└── main.swift</div></div><div class=""><br class=""></div><div class="">And for project of type lib:</div><div class=""><br class=""></div><div class=""><div class="">foo</div><div class="">├── Package.swift</div><div class="">├── README.md</div><div class="">└── Sources</div><div class="">&nbsp; &nbsp; └── Foo.swift</div></div><div class=""><br class=""></div><div class="">In both cases Package.swift would contain something basic like:</div><div class=""><br class=""></div><div class=""><div class="">import PackageDescription</div><div class=""><br class=""></div><div class="">let package = Package(</div><div class="">&nbsp; &nbsp; name: “Foo",</div><div class="">&nbsp; &nbsp; dependencies: [</div><div class="">&nbsp; &nbsp; ]</div><div class="">)</div></div></body></html>