Initial commit of files

This commit is contained in:
Ben Kreeger 2025-08-19 16:38:06 -05:00
commit f7aeed9f38
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
8 changed files with 75 additions and 0 deletions

8
.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

6
.nvim/config.json Normal file
View File

@ -0,0 +1,6 @@
{
"commands": {
"build": "swift build",
"run": "swift run"
}
}

1
.swift-version Normal file
View File

@ -0,0 +1 @@
6.2

1
.swiftformat Normal file
View File

@ -0,0 +1 @@
--indent 4

15
Package.resolved Normal file
View File

@ -0,0 +1,15 @@
{
"originHash" : "7168671e688b0ccae86155da01e80e0d8c44c91c80a5989a6c075f4f2ae64b75",
"pins" : [
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "309a47b2b1d9b5e991f36961c983ecec72275be3",
"version" : "1.6.1"
}
}
],
"version" : 3
}

19
Package.swift Normal file
View File

@ -0,0 +1,19 @@
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Putty",
platforms: [.macOS(.v15)],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.6.1"),
],
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: "putty", dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]),
],
)

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# Putty
Rewritten for like, the third or fourth time. This time in Swift.
## Documentation links
- [Swift Argument Parser](https://swiftpackageindex.com/apple/swift-argument-parser/1.6.1/documentation/argumentparser)

18
Sources/Putty/Putty.swift Normal file
View File

@ -0,0 +1,18 @@
import ArgumentParser
@main
struct CLI: AsyncParsableCommand {
static let configuration: CommandConfiguration = .init(
commandName: "putty",
abstract: "A utility for getting comic data from GoComics.com.",
subcommands: [Scrape.self],
)
}
struct Scrape: AsyncParsableCommand {
static let configuration: CommandConfiguration = .init(abstract: "Scrape all necessary data.")
mutating func run() async throws {
print("scrape")
}
}