aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore8
-rw-r--r--Package.swift20
-rw-r--r--Sources/phbar/phbar.swift9
-rw-r--r--Tests/phbarTests/phbarTests.swift8
4 files changed, 45 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0023a53
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+.DS_Store
+/.build
+/Packages
+xcuserdata/
+DerivedData/
+.swiftpm/configuration/registries.json
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
+.netrc
diff --git a/Package.swift b/Package.swift
new file mode 100644
index 0000000..f01d543
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,20 @@
+// swift-tools-version: 6.3
+// The swift-tools-version declares the minimum version of Swift required to build this package.
+
+import PackageDescription
+
+let package = Package(
+ name: "phbar",
+ targets: [
+ // Targets are the basic building blocks of a package, defining a module or a test suite.
+ // Targets can depend on other targets in this package and products from dependencies.
+ .executableTarget(
+ name: "phbar"
+ ),
+ .testTarget(
+ name: "phbarTests",
+ dependencies: ["phbar"]
+ ),
+ ],
+ swiftLanguageModes: [.v6]
+)
diff --git a/Sources/phbar/phbar.swift b/Sources/phbar/phbar.swift
new file mode 100644
index 0000000..e1ef8cc
--- /dev/null
+++ b/Sources/phbar/phbar.swift
@@ -0,0 +1,9 @@
+// The Swift Programming Language
+// https://docs.swift.org/swift-book
+
+@main
+struct phbar {
+ static func main() {
+ print("Hello, world!")
+ }
+}
diff --git a/Tests/phbarTests/phbarTests.swift b/Tests/phbarTests/phbarTests.swift
new file mode 100644
index 0000000..e4ee1a9
--- /dev/null
+++ b/Tests/phbarTests/phbarTests.swift
@@ -0,0 +1,8 @@
+import Testing
+@testable import phbar
+
+@Test func example() async throws {
+ // Write your test here and use APIs like `#expect(...)` to check expected conditions.
+ // Swift Testing Documentation
+ // https://developer.apple.com/documentation/testing
+}