Skip to content

Commit

Permalink
various fixes to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Esau committed Jul 6, 2021
1 parent 9b9e8a3 commit 059d95c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CLI/AllocAttribute+dump.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foundation
import FINporter
import AllocData

extension AllocAttribute {
public extension AllocAttribute {

static func dumpTable(attributes: [AllocAttribute]) -> String {

Expand Down
4 changes: 2 additions & 2 deletions CLI/main+schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import SwiftCSV
extension Finporter {
struct Schema: ParsableCommand {
static var configuration = CommandConfiguration(
// Command names are automatically generated from the type name
// command names are automatically generated from the type name
// by default; you can specify an override here.
commandName: "schema",
abstract: "Describe schema details.",
Expand All @@ -42,7 +42,7 @@ extension Finporter {
Tracker.self,
]
)
// defaultSubcommand: Format.self)
// defaultsubcommand: format.self)
}
}

Expand Down
2 changes: 2 additions & 0 deletions CLI/main+transform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import SwiftCSV

extension Finporter {
struct Transform: ParsableCommand {
init() {
}
static var configuration = CommandConfiguration(
commandName: "transform",
abstract: "Transform data in file."
Expand Down
27 changes: 10 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

// Copyright 2021 FlowAllocator LLC
Expand All @@ -21,40 +21,33 @@ let package = Package(
name: "FINporter",
products: [
.library(name: "FINporter", targets: ["FINporter"]),
.executable(name: "finporter", targets: ["FINporterCLI"]),
.executable(name: "finporter", targets: ["FINporterCLI"])
],
dependencies: [
.package(url: "https://github.com/openalloc/AllocData.git", from: "1.0.0"),
.package(url: "https://github.com/reedes/SwiftCSV.git", .upToNextMajor(from: "0.6.1")),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "0.4.3")),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(name: "AllocData", url: "https://github.com/openalloc/AllocData.git", from: "1.0.0"),
.package(name: "SwiftCSV", url: "https://github.com/reedes/SwiftCSV.git", .upToNextMajor(from: "0.6.1")),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "0.4.3"))
],
targets: [
.target(
name: "FINporter",
dependencies: [
.product(name: "AllocData", package: "AllocData"),
.product(name: "SwiftCSV", package: "SwiftCSV"),
.product(name: "Logging", package: "swift-log")
"AllocData", "SwiftCSV"
],
path: "Sources"
),
.target(
.executableTarget(
name: "FINporterCLI",
dependencies: [
.product(name: "AllocData", package: "AllocData"),
dependencies: [
"FINporter",
.product(name: "SwiftCSV", package: "SwiftCSV"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "CLI"
),
.testTarget(
name: "FINporterTests",
dependencies: [
.product(name: "AllocData", package: "AllocData"),
"FINporter",
.product(name: "SwiftCSV", package: "SwiftCSV"),
"FINporter"
],
path: "Tests"
),
Expand Down

0 comments on commit 059d95c

Please sign in to comment.