-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aesthetics for new Swift command plugin #172
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ let package = Package( | |
platforms: [.macOS(.v10_13)], | ||
products: [ | ||
.executable(name: "AirbnbSwiftFormatTool", targets: ["AirbnbSwiftFormatTool"]), | ||
.plugin(name: "AirbnbSwiftFormatPlugin", targets: ["AirbnbSwiftFormatPlugin"]), | ||
.plugin(name: "FormatSwift", targets: ["FormatSwift"]), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/calda/SwiftFormat", exact: "0.49.11-beta-2"), | ||
|
@@ -18,7 +18,7 @@ let package = Package( | |
], | ||
targets: [ | ||
.plugin( | ||
name: "AirbnbSwiftFormatPlugin", | ||
name: "FormatSwift", | ||
capability: .command( | ||
intent: .custom( | ||
verb: "format", | ||
|
@@ -30,14 +30,12 @@ let package = Package( | |
"AirbnbSwiftFormatTool", | ||
.product(name: "swiftformat", package: "SwiftFormat"), | ||
.product(name: "swiftlint", package: "SwiftLint"), | ||
], | ||
path: "AirbnbSwiftFormatPlugin"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this path by putting the source in a folder under the default Plugins directory. |
||
]), | ||
.executableTarget( | ||
name: "AirbnbSwiftFormatTool", | ||
dependencies: [ | ||
.product(name: "ArgumentParser", package: "swift-argument-parser"), | ||
], | ||
path: "AirbnbSwiftFormatTool", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this path by putting the source in a folder under the default Sources directory. |
||
resources: [ | ||
.process("airbnb.swiftformat"), | ||
.process("swiftlint.yml"), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered if we should export this tool or simplify export the plugin for now. I also wondered if we should simplify the name of the tool but I left it as-is.