aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore8
-rw-r--r--Package.swift26
-rw-r--r--Sources/aria/aria.swift14
-rw-r--r--Tests/ariaTests/ariaTests.swift8
4 files changed, 56 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..ae8edd6
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,26 @@
+// 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: "aria",
+ dependencies: [
+ .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
+ ],
+ 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: "aria",
+ dependencies: [
+ .product(name: "ArgumentParser", package: "swift-argument-parser"),
+ ]
+ ),
+ .testTarget(
+ name: "ariaTests",
+ dependencies: ["aria"]
+ ),
+ ],
+ swiftLanguageModes: [.v6]
+)
diff --git a/Sources/aria/aria.swift b/Sources/aria/aria.swift
new file mode 100644
index 0000000..6c7ef45
--- /dev/null
+++ b/Sources/aria/aria.swift
@@ -0,0 +1,14 @@
+// The Swift Programming Language
+// https://docs.swift.org/swift-book
+//
+// Swift Argument Parser
+// https://swiftpackageindex.com/apple/swift-argument-parser/documentation
+
+import ArgumentParser
+
+@main
+struct aria: ParsableCommand {
+ mutating func run() throws {
+ print("Hello, world!")
+ }
+}
diff --git a/Tests/ariaTests/ariaTests.swift b/Tests/ariaTests/ariaTests.swift
new file mode 100644
index 0000000..230a507
--- /dev/null
+++ b/Tests/ariaTests/ariaTests.swift
@@ -0,0 +1,8 @@
+import Testing
+@testable import aria
+
+@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
+}