Merge pull request #8 from JohnSundell/auxiliary-source-files Playground: Add support for auxiliary source files
Merge pull request #8 from JohnSundell/auxiliary-source-files
Playground: Add support for auxiliary source files
Easily generate Xcode workspaces & playgrounds from a Swift script or command line tool.
Generate workspaces:
import Xgen let workspace = Workspace(path: "~/MyWorkspace") workspace.addProject(at: "~/MyProject.xcodeproj") try workspace.generate()
Generate playgrounds:
import Xgen let code = "import Foundation\n\n" + "print(\"Hello world\")" let playground = Playground(path: "~/MyPlayground", platform: .iOS, code: code) try playground.generate()
$ marathon add git@github.com:JohnSundell/Xgen.git
git@github.com:JohnSundell/Xgen.git
Marathonfile
$ marathon run yourScript.swift
.Package(url: "git@github.com:johnsundell/xgen.git", majorVersion: 1)
Package.swift
$ swift package update
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Easily generate Xcode workspaces & playgrounds from a Swift script or command line tool.
Usage
Generate workspaces:
Generate playgrounds:
Installation
For scripts
$ marathon add git@github.com:JohnSundell/Xgen.git
.git@github.com:JohnSundell/Xgen.git
to yourMarathonfile
.$ marathon run yourScript.swift
.For command line tools
.Package(url: "git@github.com:johnsundell/xgen.git", majorVersion: 1)
to yourPackage.swift
file.$ swift package update
.Help, feedback or suggestions?