Skip to content

Commit 480d367

Browse files
committed
Initial Commit
0 parents  commit 480d367

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Package.swift

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "xcc",
8+
dependencies: [
9+
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
10+
],
11+
targets: [
12+
// Targets are the basic building blocks of a package, defining a module or a test suite.
13+
// Targets can depend on other targets in this package and products from dependencies.
14+
.executableTarget(
15+
name: "xcc",
16+
dependencies: [
17+
.product(name: "ArgumentParser", package: "swift-argument-parser"),
18+
]
19+
),
20+
]
21+
)

Sources/xcc.swift

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// The Swift Programming Language
2+
// https://docs.swift.org/swift-book
3+
//
4+
// Swift Argument Parser
5+
// https://swiftpackageindex.com/apple/swift-argument-parser/documentation
6+
7+
import ArgumentParser
8+
9+
@main
10+
struct xcc: ParsableCommand {
11+
mutating func run() throws {
12+
print("Hello, world!")
13+
}
14+
}

0 commit comments

Comments
 (0)