Initial commit of files
This commit is contained in:
commit
f7aeed9f38
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal 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
6
.nvim/config.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"commands": {
|
||||
"build": "swift build",
|
||||
"run": "swift run"
|
||||
}
|
||||
}
|
||||
1
.swift-version
Normal file
1
.swift-version
Normal file
@ -0,0 +1 @@
|
||||
6.2
|
||||
1
.swiftformat
Normal file
1
.swiftformat
Normal file
@ -0,0 +1 @@
|
||||
--indent 4
|
||||
15
Package.resolved
Normal file
15
Package.resolved
Normal 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
19
Package.swift
Normal 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
7
README.md
Normal 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
18
Sources/Putty/Putty.swift
Normal 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")
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user